See attached screenshot.

It does not display all the theme regions (only the overlay ones), and forcing Garland to display within the overlay like that looks a bit weird to begin with (the normal paradigm being that if you have an admin theme, the overlay should always use it).

Possible solution: Wait for #87994: Quit clobbering people's work when they click the filter tips link to go in, and then display this page in a separate modal popup instead?

CommentFileSizeAuthor
#157 block-demo+overlay-context.patch5.76 KBcasey
#156 655416-156-block-region-demo.patch5.53 KBksenzee
#156 block-demo-bartik.png13.75 KBksenzee
#156 block-demo-garland.png24.9 KBksenzee
#156 block-demo-seven.png10.11 KBksenzee
#156 block-demo-stark.png19.36 KBksenzee
#154 demoblockslink.patch2.64 KByoroy
#142 block-demo-overlay-655416-142.patch5.33 KBBTMash
#141 block-demo-overlay-655416-141.patch4.88 KBBTMash
#134 magnified-block-demo.png69 KBjhodgdon
#129 655416-stark-error.png43.92 KBBTMash
#129 655416-overlay-resize-issue.png59.48 KBBTMash
#129 655416-overlay-theme-issue.png49.87 KBBTMash
#126 block-demo-overlay-655416-125.patch6.07 KBBTMash
#122 block-demo-overlay-655416-122.patch6.29 KBBTMash
#121 block-demo-overlay-655416-121.patch6.61 KBBTMash
#119 block-demo-overlay-655-416-119.patch5.77 KBBTMash
#114 block-demo-overlay-context-655416-115.patch6.19 KBBTMash
#110 655416-101-issues.png71.16 KBjwilson3
#110 655416-101-issues2.png74.81 KBjwilson3
#110 655416-101-issues3.png73.39 KBjwilson3
#110 655416-110-proposed1.png59.72 KBjwilson3
#110 655416-110-proposed2.png57.39 KBjwilson3
#103 block-demo-overlay-context-655416.patch5.83 KBBTMash
#101 block-demo+overlay-context.patch6.02 KBcasey
#99 blockdemobacklink6.patch5.27 KBBTMash
#97 blockdemobacklink5.patch5.19 KBBTMash
#91 blockdemobacklink2-restore.png177.37 KBoseldman
#88 blockdemobacklink4.patch5.15 KBBTMash
#85 blockdemobacklink3.patch5.15 KBBTMash
#80 blockdemobacklink2.patch5.41 KBcasey
#70 blocksdemolink.patch2.01 KByoroy
#70 demolink.jpg86.16 KByoroy
#54 Garland | Site-Install_1271755366138.png54.28 KBcatch
#52 drupal.block-theme-demo.52.patch633 bytessun
#30 block-demo-page-backlink.patch1.96 KBGábor Hojtsy
#30 Backlink.png57.99 KBGábor Hojtsy
#29 blockdemo.patch3.82 KBcasey
#28 blockdemo.patch3.26 KBcasey
#28 blockdemo-withoutoverlay.png58.54 KBcasey
#28 blockdemo-withoverlay.png64.45 KBcasey
#27 backtoblocksadmin.jpg138.98 KBBojhan
#24 blockdemo-withoverlay.png76.18 KBcasey
#24 blockdemo-withoutoverlay.png77.29 KBcasey
#22 blockdemo.patch2.86 KBcasey
#19 overlay-demo.jpg112.65 KBjide
#17 block-backlink.patch704 bytesGábor Hojtsy
#4 overlayblockdemo.patch563 bytescasey
demonstrate-blocks-screen-in-overlay.png48.69 KBDavid_Rothstein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bleen’s picture

Also, clicking "Demonstrate block regions" in the overlay traps the user. There is no (good) way to get back to where you just were. There should probably be a link that says something like "back to block configuration" or something like that.

bleen’s picture

Incidently, I do see all the regions when I click "Demonstrate block regions" on a clean D7 install

webchick’s picture

Priority: Normal » Critical
Issue tags: +webchick's D7 alpha hit list

This is obviously broken user-facing functionality. I would love to see this fixed prior to alpha. Can we just not open this link in the overlay to solve the issue?

casey’s picture

Status: Active » Needs review
FileSize
563 bytes

Like @webchick suggested.

This approach does however still have the problems @bleen18 indicated in #1.

mrfelton’s picture

Definitely an improvement.

webchick’s picture

Could we put add an unobtrusive link in the upper-left corner? Since this will need some discussion/design, tagging appropriately.

Bojhan’s picture

I would indeed favor such a thing, it could be similar in style to the Skip navigation button. No need to display this inside the overlay

webchick’s picture

Status: Needs review » Needs work

Cool, that makes this a "needs work" then.

scroogie’s picture

But how does it help? It would still need to be shown in the User-Facing theme instead of the admin theme, right?

Bojhan’s picture

It solves the problem, of not knowing how to get back to administration of blocks.

babbage’s picture

Patch works as intended. Personally, however, it was initially disorienting to find myself still in an admin task, but no longer in the overlay. I would definitely +1 a solution that somehow showed a correct demonstration of the block regions, while remaining in the overlay... having it encapsulated in the overlay just makes it immediately clear you are looking at a preview/demonstration of something, rather than the possibility of thinking that these weird dotted lines have just been actually applied to what other users are seeing on your real site. Not sure how one would go about making the originally intended functionality work for this, however, so don't think I could attempt it myself!

Gábor Hojtsy’s picture

@dbabbage: Maybe we should add some substantial white border around the preview so it it looks more evident that it is in the overlay? Also, we should need to avoid omitting the regions then.

It would be good to get some more feedback on this IMHO. If we'd display it outside the overlay, we need some treatment to get back to an overlay page to edit blocks, otherwise we need some reorientation of stuff in the overlay (wide white border). Keeping the preview in the overlay could cause problems especially for wide themes.

Bojhan’s picture

@Gabor Actually the solution has already been proposed in #6. Just needs someone to patch it.

Gábor Hojtsy’s picture

@Bojhan "this will need some discussion/design" == "just needs someone to patch it"?!?

Bojhan’s picture

@Gabor Yes, I can't do the styling in CSS of something that needs to be created on PHP level. An initial patch, would allow me to do that, also said it could look similiar to the skip navigation look (thats the design discussion :D)

Bojhan’s picture

Title: "Demonstrate block regions" functionality does not work correctly in the overlay » Provide a back button from the "Demonstrate block regions" page
Gábor Hojtsy’s picture

FileSize
704 bytes

Ok, this will place a nice link in the body of the page. Since it has the "block-back-to-list" class, it can be styled however you want, you can place it in a ribbon on top of the screen, put in the corner, whatever. Feel free to tweak wording as well.

Gábor Hojtsy’s picture

Title: Provide a back button from the "Demonstrate block regions" page » "Demonstrate block regions" bugs with regions, navigation, overlay

We have a couple tasks / questions here:

1. It shows in the overlay but not with the overlay theme. That looks very creepy since it will not be on white in many cases (unlike Seven), so the borders around the overlay and background theme will be an issue. This still seems to be in debate.

2. Not all regions are demonstrated. Because it displays in the overlay, and the overlay drops numerous regions.

3. There is no back-navigation.

I think these three issues are highly interrelated, so we should solve them in context. Fixed the title to cover the whole scope.

jide’s picture

FileSize
112.65 KB

To make it clear for the user about what is happening while displaying the demonstration in the parent window, we could make the overlay slide on the left of the screen. See attached mockup.

I think this would be great in a UX perspective, but surely more complicated to implement.

Gábor Hojtsy’s picture

How would the interaction of the underlying page change go then? (It does sound like a considerable challenge to implement also, yes).

jide’s picture

@Gábor Hojtsy :

How would the interaction of the underlying page change go then?

Sorry, but I don't understand what you mean here. How the user goes back to the overlay ?

Yes it is challenging to implement, let's see if there is interest for this solution.

casey’s picture

Status: Needs work » Needs review
FileSize
2.86 KB

- Demo inside overlay
- A bar on top of the demo page with a back link (also without overlay)
- A invisible layer over the demo page so no links can be clicked (also without overlay)

Bojhan’s picture

Can you provide a screenshot otherwise I cant review

casey’s picture

Bojhan’s picture

Why does the without overlay, exclude toolbar and shortcuts? Also I think that without overlay should be our primary interaction model, I dont see any reason to have it inside the overlay.

casey’s picture

Oops you are totally right. When I was checking my patch the toolbar was already gone and I assumed that was how it was implemented.

Bojhan’s picture

FileSize
138.98 KB

Ok, here is an example of what I mean - don't pay to much attention to the styling that could probally use some touching still. But I never intended it to be inside the overlay, I see no advantage to doing that.

backtoblocksadmin.jpg

casey’s picture

It's a little hackish but this is what I tried to accomplish with my previous patch.

casey’s picture

FileSize
3.82 KB

Ow forgot garland style. Patch defenitly needs works.

Gábor Hojtsy’s picture

Ok, since Bojhan requested to not show this in the overlay, we can reach back to #4, which excludes this from the overlay. That in itself also solves the displayed regions issue, so we don't need to special case code for that. Then we don't need to employ conditional altering, since we can just build in the backlink when we will in the regions. We can employ the mandatory page_top region to add this link right below the toolbar.

Now, we'd only need to find ways to make this link appear at a sane place in our themes. Since I did not have a great success with that, I'd leave that to others. My approach/patch attached.

This is how it looks:

casey’s picture

Backlink won't work correctly when you have opened the demo from within the overlay.

- Navigate to a non-frontpage page.
- Open the overlay and navigate to block configuration. (path will be something like /user/1#overlay=admin/structure/block/list/garland)
- Click on demonstration link (which will take you to /admin/structure/block/demo/garland)
- The backlink will point to /admin/structure/block/list/garland while browser's history will take you back to /user/1#overlay=admin/structure/block/list/garland

Gábor Hojtsy’s picture

I'm not sure I understand what you mean. Do you mean that the demo link now opens a new browser window/tab, and therefore the browser back button will not work?

yoroy’s picture

Tried the patch, working well for me. Can't reproduce what casey describes in #31. I think I followed the steps outlined there. Then, both the browser back button and the 'back to block configuration' link take me back to the blocks page within the overlay.

Some of the 'Back to block configuration' styling gets overridden by (in this case) Garland. Should be more in line with Seven styling. I'll have a look.

Overall: great patch!

yoroy’s picture

Hmm. on clicking around some more, there's something funny going on indeed. I ended up on the 'reports' page and noticed that 'structure' was still shown as the active link. URL at that point was "/admin/structure/block/demo/garland#overlay=admin/reports".

yoroy’s picture

Seems as if you never leave the 'demonstration context'. Screenshot:

Garland | d7

Gábor Hojtsy’s picture

Yes, the assumption of the toolbar is that you'd not get an admin page displayed in both the background and the overlay. So we should hide the toolbar on the demo page to encourage clicking on the backlink? (Would make positioning the backlink at the right place way easier).

Bojhan’s picture

No, hiding it will only cause confusion.

Gábor Hojtsy’s picture

Yoroy demonstrated that showing it causes confusion. So how to solve it then?

Bojhan’s picture

Wait hiding the toolbar will cause confusion, because there is currently no mode in Drupal core where there is no toolbar except updating/installing. The bug portrait by yoroy, is unavoidable - as far as I know.

moshe weitzman’s picture

This feature has always been very poorly implemented. I would be fine droppong , to be honest. Just throwing it out there. Its obviously preferable to keep it and improve it.

Gábor Hojtsy’s picture

Status: Needs review » Needs work

@Bojhan: ok, so looks like @yoroy can look at the styling as he suggested and we can much on the updated patch then.

yoroy’s picture

Status: Needs work » Needs review

Gabor: to be clear the screenshot in #35 is *not* while in 'demonstration mode'. I had already click the exit link. This is a screenshot of a little while later, browsing other admin pages. Somehow the demonstration context does not get removed (this I noticed from the url and the wrong hilite showing up).

Gábor Hojtsy’s picture

@yoroy: the first part of your URL clearly shows you are on the garland block demo page in the background (also, the back to block admin link is visible there). The structure item was highlighted due to being under a path there, but then you kept navigating around via the toolbar, so you got the reports page displayed eventually above.

yoroy’s picture

Sketching things in Firebug:

1: http://skitch.com/yoroy/ni67m/garland-d7
2: http://skitch.com/yoroy/ni671/firefox
3: http://skitch.com/yoroy/ni67b/garland-d7

Not sure how eye-cathing this should be though. These are all stylings found nowhere else, because this is quite a unique context to be in as well. Thoughts?

Bojhan’s picture

I do think the yellow is a bit to much, we don't use this anywhere in Drupal - nor do we promote such visual styling. I would rather go with a white-ish button, as it puts some difference with the toolbar (where you can see the gray doesn't). Also with the shadow ontop of it, it decreases its visual appearance immensely - perhaps make it bigger?

Bojhan’s picture

Trying to move this along @yoroy , lets talk some more on IRC to find a suiting style. Regarding the position, in the middle might be better then the top left, as its more clearly there - the problem I see that its very likely to overlap an important theme style element?

yoroy’s picture

Agreed with centering being best. But:
Could we use a standard Drupal message (dsm) here?
Like so in Stark: http://skitch.com/yoroy/n4f5j/untitled-4-100-layer-2-rgb

- pro: will not cover other elements, reuses an existing pattern
- contra: invisible *because* it reuses an existing pattern?

tstoeckler’s picture

I like that. I think it will be more visible in Garland, i.e.

amc’s picture

#30: block-demo-page-backlink.patch queued for re-testing.

sun’s picture

Status: Needs review » Needs work

Why do we suddenly need a back link gimmick that does not fit into any other pattern we have in core? The patch in #4 nicely solved the problem at hand. No need to display the preview in the overlay. The breadcrumbs allow you to navigate back. Be done with it.

yoroy’s picture

Because this is the only place where we apply the 'preview' from admin-into-frontend pattern in core.
Preview is tricky. For most, it's 'magic'. You want to provide a clear and simple click that lets you stop the illusion and return safely to where you came from. Breadcrumbs are not that click. Nor is my message idea in #47 appropriate.

Showing it inside overlay adds to the magic and we want to avoid that.
Making things feel simple just takes more work :)

So this needs a bump with a new or re-attached earlier patch? Then we can test and review again.

sun’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
633 bytes

Sure.

yoroy’s picture

Status: Reviewed & tested by the community » Needs review

thanks

catch’s picture

Status: Needs review » Needs work
FileSize
54.28 KB

Here's a screenshot. The breadcrumb is quite dominant but without hovering over it you can't really be sure that it'll take you back to the non-preview state, so I think we need something else too. Definitely this is a non-overlay page though.

yoroy’s picture

Relying on breadcrumbs is not going to cut it, So another visual design option:

aspilicious’s picture

I *really* like yoroy's design...
First time in this issue I have a "nice job" feeling!

aspilicious’s picture

Yoroy suggested in irc to change the colour of the slide out to something like this: http://skitch.com/yoroy/n96u4/firefox
But In my eyes, the design in #55 looks nicer and it still pops up enough.
What do the others think?

bleen’s picture

I like #55 much better ... #57 looks disjointed but #55 looks nice and coherent but still pops out

amc’s picture

#55 is nice. It blends nicely into the shortcut bar but it'll look different if shortcuts are disabled or the drawer is closed. Toolbar may be disabled too, in which case it'll pop out of the top of the screen. Is that okay design-wise?

babbage’s picture

#55 is a departure from anything else in D7, but then so is the preview. However, instead of "< Back to block configuration" I'd have that tab say:
"Site Layout Preview [x]"

...with the [x] obviously closing the preview and returning you to where it came from. In my mind, that'd make more sense of the centered nature of that additional tab as well, as it would be an overlay (to confuse the term) indicating it applies to the content directly below.

amc’s picture

Another alternative is the "blue bar" mentioned in http://drupal.org/node/655388#comment-2638782 and the following comments. Using it for that case and here would bring some consistency and establish a pattern for similar UI circumstances.

casey’s picture

I like the "blue bar" best too.

Shouldn't be too hard to accomplish:

- make overlay dependant upon toolbar
- add a drawer to toolbar like shortcut module is doing (overlay_page_alter() and overlay_toolbar_pre_render())
- add a generic class to toolbar.css to style drawers like the proposed "blue bar".

aspilicious’s picture

what if we disable toolbar...

amc’s picture

Since the block regions page can be shown whether or not toolbar/shortcuts are enabled, the blue bar would have to be shown in all cases. Indeed, if you look at http://www.d7ux.org/edit-on-page/ the mockup for the bar is shown in a situation without the overlay.

Bojhan’s picture

Lets stop assuming this wouldn't be modular and make it modular. Obviously it can't depend on toolbar or shortcut bar, however it should integrate nicely. I dont think we have chosen a design yet

kika’s picture

Note that there is a similar UI proposal for backlink but other way around: a special link getting _back_to_the_nonadmin_page_ http://drupal.org/node/659488#comment-2901204, mockup here: http://drupal.org/files/issues/back-to-previous-page-link.png

Perhaps these efforts could be unified?

This means the context-aware backlink needs to be nicely abstracted so in different scenarios different link content can be injected. Also, it should be bolted to permanent place in the page (likely docked to the menubar) and work both in admin and non-admin pages.

David_Rothstein’s picture

The proposal @kika mentioned now has its own dedicated issue here: #787896: Add a link so that administrators can return to their most recently visited non-admin page

Owen Barton’s picture

Subscribe

yoroy’s picture

If centering is not a problem (link text width is not explicitly set, afaik makes it impossible to do a margin: 0 auto;) then I think we should center this.
As for the blue or the grey, we could go either way. What I think might work here is a little animation magic to slide in this button on page load. Will make sure it catches the eye. Could be annoying but it's quite important to communicate this 'preview' state and show the way out of it.

yoroy’s picture

FileSize
86.16 KB
2.01 KB

3 scenarios: 1. toolbar + shortcuts, 2. toolbar only, 3. no toolbar, no shortcuts.

I'm opting for a right-aligned here, since centering is likely to cover the region labels.
Attaching a patch to get things on track again.

yoroy’s picture

Status: Needs work » Needs review

Needs review for testbod.To do: make the 'demonstrate' link on the blocks page break out of the overlay.

Status: Needs review » Needs work
Issue tags: -Usability, -Needs design review, -webchick's D7 alpha hit list

The last submitted patch, blocksdemolink.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review
Issue tags: +Usability, +Needs design review, +webchick's D7 alpha hit list

#70: blocksdemolink.patch queued for re-testing.

yoroy’s picture

Status: Needs review » Needs work

Ok, passes. Now needs work to make the 'demonstrate' link break out of the overlay.

Jeff Burnz’s picture

subscribe

YesCT’s picture

In preparation for the new "major" issue priority, I'm tagging this (not actually critical, but still important) issue as priority-major.
See: http://drupal.org/node/669048#comment-3019824 (#669048: We should have four priorities not three (introduce a new 'major' priority)) for more information about the coming major issue priority.

yoroy’s picture

We'll want to use the blue tint: #d5e9f2 It'll be introduced in the fields ui as well for 'general signposting': http://drupal.org/node/796658#comment-3043192

Bojhan’s picture

Perhaps instead of center alignment, we should aim for left alignment. Ie, left alignment makes sense for going back, more so then right because of the browser window its back location.

casey’s picture

yoroy's todo "Now needs work to make the 'demonstrate' link break out of the overlay." is done since #668640: Overlay shouldn't be based on jQuery UI Dialog.

But the "Back to block configuration" link won't reopen the original location with on top the previous admin page inside the overlay. Rather it opens the overlay on top of the demonstration page.

This is expected behavior (code wise), but not what we want. A similar issue is #821248: Installing a module or running updates from the overlay makes you leave the overlay but doesn't bring you back..

casey’s picture

Status: Needs work » Needs review
FileSize
5.41 KB

This might do the trick.

aspilicious’s picture

It works partially.
When it brings you back you still see the back to block page link.
It uses cookies, is that allowed or do we need a database variable.

casey’s picture

Eh... no it doesn't?

Toolbar is using a cookie to. I tried it with sessions, but a cookie seems to be the best way here as we want to use it in Javascript.

aspilicious’s picture

It does stay on my computer...
I'll try a fresh instal tomorow

aspilicious’s picture

Ok don't need to use a fresh install. Now it works nicely...

BTMash’s picture

FileSize
5.15 KB

oseldman (http://drupal.org/user/147794) and I are currently reviewing this issue as part of the LA Drupal code sprint and we found an issue where the 'back to block configuration' tab was scrolling with the page. The solution was to simply use fixed positioning instead of absolute and that seems to fix the scrolling issue. Attaching patch.

aspilicious’s picture

+  -moz-border-radius-bottomright: 10px;
+  -moz-border-radius-bottomleft: 10px;
+  -webkit-border-bottom-right-radius: 10px;
+  -webkit-border-bottom-left-radius: 10px;

This also need the "normal" border radius css for opera, newest chrome versions and IE9

Status: Needs review » Needs work

The last submitted patch, blockdemobacklink3.patch, failed testing.

BTMash’s picture

FileSize
5.15 KB

Ok, I did not roll the patch correctly (using git which generated a different type of diff file) Attaching again...

BTMash’s picture

Status: Needs work » Needs review
Anonymous’s picture

oseldman’s picture

Status: Needs work » Needs review
FileSize
177.37 KB

I also noticed that the restore ('back to block configuration') tab stayed on the page even when you navigate to other admin areas.

This can be duplicated by clicking "Demonstrate block regions" and then clicking on any of the other admin links in the home bar. In the attached image I've clicked on "Modules". You'll notice that both menu items are now highlighted and the #overlay has been appended to admin/structure/block/demo/theme in the url (/admin/structure/block/demo/garland#overlay=admin/modules).

This appears to be an issue in overlay-parent.js

#ladrupal codesprint

Status: Needs review » Needs work

The last submitted patch, blockdemobacklink4.patch, failed testing.

BTMash’s picture

Status: Needs review » Needs work

Ok, this diff doesn't seem to conform to regular standards either...will switch over to using cvs and provide a better diff that tries to fix what Oliver found.

casey’s picture

@oseldman, the back link is supposed to stay: as long as you are within the block demonstration, the backlink should stay.

@BTMash, please include suggestion of aspilicious.

oseldman’s picture

@casey Try this: Structure -> Blocks -> Demonstrate block regions -> People -> Structure -> Blocks -> Demonstrate block regions.

Now click "Back to block configuration" and the block-demo-backlink still appears. In the other cases, this disappears, so there seems to be some conflicting behavior. It appears "Home" or "Log out" are then the only way to exit the block demonstration.

casey’s picture

Ok replace

      $.cookie('Drupal.overlay.lastParentLocation', window.location, { path: Drupal.settings.basePath });

with

      if (this.getPath(href) != this.getPath(window.location)) {
        $.cookie('Drupal.overlay.lastParentLocation', window.location, { path: Drupal.settings.basePath });
      }
BTMash’s picture

Status: Needs work » Needs review
FileSize
5.19 KB

re-submitting patch...I agree with what Oliver is saying and think either removal of the top layer or fixup of where the link goes is the answer.

BTMash’s picture

ack...missed casey's new post. Will be rerolling again.

BTMash’s picture

FileSize
5.27 KB

Re-rolled patch.

casey’s picture

New approach; instead of using a cookie we should use jQuery BBQ; that library is build with history back button in mind. Seems to work like a charm.

casey’s picture

Oops forgot patch.

In this patch I used the URL fragment, but we can also use the URL query as it doesn't need to be updated without reloading the page. We could use this approach for #821248: Installing a module or running updates from the overlay makes you leave the overlay but doesn't bring you back. if we make sure authorize.php/update.php passes on URL query arguments.

aspilicious’s picture

Code wise I prefer this approach. Can't test this approach today.
Thnx casey for your work on this ;)

BTMash’s picture

From talking with oseldman, we both felt that 'Back to block configuration' was not necessarily the correct wording to use - the user could get to the block configuration via structure -> blocks (and the link would still show up making the link title misleading). Instead, something like 'Exit block region demonstration' made more sense (particularly given the initial link title 'Demonstrate block regions'). Attaching patch with the minor change (as everything else in the new code looks great).

aspilicious’s picture

We have to try the blue tint yoroy asked for (and see what result it gives) (#77)
We have to adress bohjan's concern in (#78)

If someone can do that and provide a screenshot. Would be great ;)

aspilicious’s picture

Another thought: does it needs rtl styling? I think it does.

Bojhan’s picture

Can we see screen? It does need rtl styling.

jwilson3’s picture

Hi, I'm working with Drupal Latin America on a sprint today, trying to review patches. Would like to note that patch #103 (@BTMash) still loads the block region preview in the overlay.

casey’s picture

You probably forgot to clear browser/Drupal cache.

YesCT’s picture

Status: Needs review » Needs work

From 104, 106, 107 needs work

jwilson3’s picture

A couple screenshots of issues with #101 as well as two possible proposals for where this type of back button could live.

jwilson3’s picture

@casey #108, oops, i did drush cache-clear all, but must have forgot to also clear browser cache. Either way it looks like the error in #101 where tab stays with you even after you leave the preview page, was fixed in #103.

As for the visual differences between 101 and 103, the only thing i see is the different text, which i have no opinion on other than the sentiment that the least number of characters to get the point across, the better ;)

BTMash’s picture

@jrguitar21,

I really like your proposal - I am going to see what is possible to change in the layout.

Agreed on the text (though we both felt it was somewhat misleading). I am unclear on whether you mean the error in 101 where the tab stays even after leaving the preview page is fixed or not.

I agree on the rtl styling though I wonder if the proposal from jrguitar21 is sufficient (also to address the concern from @bojhan in #78). On a secondary note, I do not fully understand the purpose of the blue tint (unless it is what @jrguitar21 is proposing in his proposal in which case it makes sense).

BTMash’s picture

Oh brother...took off the issue tags by mistake. Sorry!

BTMash’s picture

Status: Needs work » Needs review
FileSize
6.19 KB

Very quickly going through this, there are a couple of hitches I hit:

1) I am unsure on how to add items to the toolbar menu so the implemented menu item is still a part of hook_page_build() implemented in the block module. As a result, I have to add a somewhat large padding to the toolbar menu to get it to fit (and it is not right - any change to the size of the text makes it look like a mess)
2) I am unsure of where this css code currently goes as the ruleset is currently defined as a.block-demo-backlink + #toolbar div.toolbar-menu. I have placed it in block.css but that may need to change.

sun’s picture

Status: Needs review » Needs work
+++ modules/overlay/overlay.module
@@ -515,7 +515,6 @@ function overlay_set_mode($mode = NULL) {
-      drupal_add_library('overlay', 'jquery-bbq');

Why is BBQ removed here?

The most recent direction of squeezing the back link right in front of any "bar" looks a bit poor to me, and will likely cause toolbar links to wrap into multiple lines. I'd recommend to go back to the previous approach.

casey’s picture

It's part of the overlay-parent library, so it is added already. I know, I know... it's not really related to the issue, but an dedicated issue seemed didn't seem necessary to me.

Bojhan’s picture

So lets move it to the left? The right seems somewhat counter intuitive to where back links normally are. Also I think we concluded on using the blue color. I hope we can get a patch up quickly it seems @sun his concerns are addressed? Lets continue moving here it should be a relatively easy critical to fix.

yoroy’s picture

Agreed with positioning it on the left. It's close to where you clicked the 'demonstrate' link, too.

BTMash’s picture

Status: Needs work » Needs review
FileSize
5.77 KB

Patch with link on the left side (underneath the toolbar).

aspilicious’s picture

We have to put

+a.block-demo-backlink,
+a.block-demo-backlink:link,
+a.block-demo-backlink:visited {
+  background: #B4D7F0;
+  color: #000;
+  line-height: 20px;
+  padding: 5px 10px;
+  position: fixed;
+  z-index: 999;
+  border-bottom-right-radius: 10px;
+  border-top-right-radius: 10px;
+  -moz-border-radius-bottomright: 10px;
+  -moz-border-radius-topright: 10px;
+  -webkit-border-bottom-right-radius: 10px;
+  -webkit-border-top-right-radius: 10px;
+}

in alphabetical order.

So it has to be...

+a.block-demo-backlink,
+a.block-demo-backlink:link,
+a.block-demo-backlink:visited {
+  background: #B4D7F0;
+  -moz-border-radius-bottomright: 10px;
+  -moz-border-radius-topright: 10px;
+  -webkit-border-bottom-right-radius: 10px;
+  -webkit-border-top-right-radius: 10px;
+  border-bottom-right-radius: 10px;
+  border-top-right-radius: 10px;
+  color: #000;
+  line-height: 20px;
+  padding: 5px 10px;
+  position: fixed;
+  z-index: 999;
+}

Second of all this needs rtl styling.

BTMash’s picture

Patch with order you had in mind. I've now also added a block-rtl.css file which should has the curved borders on the left as opposed to the right and the right-side position is set to 0.

BTMash’s picture

Patch had an issue when I wanted to add the right positioning. Attaching another patch.

Bojhan’s picture

A screenshot please?

yoroy’s picture

Garland | d7

Bojhan’s picture

I dont think we need a top rounding makes it look somewhat wierd.

Also lets go with a < instead of that other sign, which is far less common. I would love to do it, but the camp here doesn't allow me to go on CVS.

Other then that looks very close to RTBC

BTMash’s picture

New patch with the recommendations above.

BTMash’s picture

Would it be possible to test this with increased font sizes as well and/or different themes? We should make sure it plays well with themes other than Garland.

BTMash’s picture

Status: Needs review » Needs work

I'm toggling this back to 'needs work'. I had a feeling this wasn't going to look good if I enabled another theme. When I test this out on Stark, I get the button appearing below the 'Skip to main content' link (am going to attach pictures). If I increase the font size, it appears on top of part of the tool bar (hiding out links such as 'Add content' and possibly more.

So we need to figure out:

a) How do we want the behavior to change when javascript is *not* enabled.
b) How do we want the behavior to change with javascript enabled.
c) What do we do with other conditions (text resize, etc).

BTMash’s picture

Attached pictures.

One thing I did see is the error on the resize does not occur after reloading the page.

The third picture shows if there are multiple themes enabled with the first theme in the list *not* being the default theme. My default theme is 'stark' but I have garland enabled. So even though its on the garland theme, its showing me the settings to view my regions in stark.

Jeff Burnz’s picture

Is there a reason why the z-index is so high, it could be obscuring the skip link (on focus) and isn't Admin Menu usually 990?

BTMash’s picture

we can set it to 1 above the toolbar (making it 601)?

BTMash’s picture

New regarding the overlay theme issue...it *seems* like the menu cache hold what the default theme is and when you enable a new theme/set a new default theme, it does not clear the menu cache so the blocks configuration seems a little 'off'. So I'm guessing there should be another issue on that but the third issue that was coming up is not due to this current issue.

Damien Tournoud’s picture

From a code perspective, I don't see anything wrong in here.

Let's see if we can fix the issues identified in #128 - #132.

jhodgdon’s picture

FileSize
69 KB

I just tried this out on the 3 themes included with Drupal (Garland, Stark, and Seven), zooming in and out to see what happened.

As you zoom in, the top-flat-bottom-rounded shape of that box starts to look really strange (see screen shot). Also, on Stark it is pretty far down on the page when you are zoomed in, so it might not be obvious that it is even there.

So I think the best place for this link is really at the top left of the screen, rather than at some arbitrary distance down the page.

It also seems to me that it's not really a problem that the blue "Exit block region demonstration" link box is appearing over some of the other content/links/etc. on the page. You can always click the "Exit" button to get back to your normal navigation.

jwilson3’s picture

I know someone requested the back arrow be <, but to me, the less-than sign (&lt;) is amateurish. If « (&laquo;) is not desired, then could the arrow be implemented as &lsaquo; or &larr;?

Possible "Back arrow" HTML Entity Character options:

1) « Exit block region demonstration [ORIGINAL] (&laquo;) proposed in #101 attachments
2) < Exit block region demonstration [CURRENT] (&lt;) requested in #125
3) ‹ Exit block region demonstration [PROPOSED] (&lsaquo;)
4) ← Exit block region demonstration [PROPOSED] (&larr;)

Either ‹ (3) or ← (4) would be visually prettier and more semantically correct than < (2). Also, note that Garland uses › (&rsaquo;) as its default breadcrumb separator, so it makes sense to use ‹ (3), in terms of design consistency.

Personally, I'd like to see ← (4) along with the benefit of being semantically accurate, it also stands out more, and thus, draws more visual attention as the "desired" action.

Either way, support would need to be built in so that this entity character could be overridden if it were to appear on the other side of the page (in an RTL layout). Probably wrapping the entire string including the entity character in t() would be sufficient, no? Assuming that an RTL layout goes hand in hand with foreign language support, they would be able to change the arrow button's direction and position in the string in the translated strings.

Gábor Hojtsy’s picture

@jrguitar21: It is already in a t(), so that should be covered.

Bojhan’s picture

I would go for

3) Because it is most consistent with what we already have and visually looks most compelling. I think an arrow is drawing to much attention and an to uncommon element on the web UI.

rfay’s picture

Subscribing

sun’s picture

If you go with ‹ (3), or actually, regardless of the effective choice, please directly use the UTF8 character instead of a HTML entity.

yoroy’s picture

Currently the "»" is used as separator for breadcrumbs. Not saying we should the same here, just pointing it out. But.
Should core add a character here at all? How much graphic support does 'Back' need? Why not let themes specify their own funky arrow background image? Characters for arrows always look cheesy to me, and I don't see them used that much. Only in crappy open source UI's ;-)

BTMash’s picture

Status: Needs work » Needs review
FileSize
4.88 KB

I think we're kinda stuck on the differences between «, <, ‹, and ← but the issues from 127 - 130 are still standing (not looking standard on stark, for instance) which are a little more serious. For now, I am removing the various arrows that are there; someone can take advantage of t() or use css to add in whatever arrows are necessary and, atleast for now, gets back on topic with finding any other serious errors.

I am rolling a new patch out that address the following:

  1. New patches into core that remove state in overlay.js
  2. Feedback from Jeff Burnz on z-index (it is now set to 601, one above the toolbar
  3. Removal of < (or any version of the arrows)
  4. Removal of rounded borders (from any side) so the element looks consistent.

Now for things that I had mentioned based on my testing...is there a way to add items to the toolbar menu. And if you are able to add items to the toolbar menu, are you also able to add any particular attributes to them? I would like to address jhodgdon's concerns with placing the 'exit block demonstration' into the top left/right corner (depending on rtl) but would also like to not end up hiding elements in the toolbar. One other possibility would be to hide the toolbar from the user on the block demonstration page. Its easy to do and to me, it makes sense to have that as the only link so the user kinda gets forced to go back to the block admin page after viewing the demonstration but I'm not entirely sure of the ramifications on UX).

BTMash’s picture

Forgot to add the part by casey in removal of jquery-bbq (which he mentioned was already part of the overlay-parent library).

Bojhan’s picture

@BTMash Sorry, but jhodgon her suggestion shouldn't be implemented. I dont feel we need to optimize for zooming in. Also I dont get why you removed the rounded corners, it has nothing to do with consistency because this whole element is new?

BTMash’s picture

Ok, regarding jhodgon's suggestion, barring the zooming in, what do you do with themes like stark? Do we keep having the button show up under the 'Skip to main content' (given the type of button that it is and its goal, it doesn't look right fitting on the page in that manner)? If we are ok with the button under, then the rounded corner looks strange.

yoroy’s picture

jhodgdon’s picture

Bojhan: It's an accessibility issue regarding zooming in. People with low vision use the web with highly magnified browsers. If they can't find the link that lets them return to the main page, because it's way down on the screen, I think that's a problem?

Why not just put it in the upper left corner? That way it's in an obvious place for everyone, I think? Or is there some other reason for not putting it there that I'm not aware of?

Bojhan’s picture

@jhodgdon That position issue we should be able to overcome, it shouldn't be way down the screen, unless you magnify it beyond oblivion.

However the UX argument for me is that we should never have an non-critical part in the primary navigation. Not because in this edge case its not a viable solution. Because it could create a shift in expectation patterns for the user, that he could expect "some" navigation showing up over the primary navigation. I want to avoid breaking into such valuable screen estate and possibly introducing a pattern that could change it.

The proposed pattern under shortcut/toolbar to me doesn't break this navigational pattern as it doesn't inflict on the actual shortcut/toolbar. Also could it be extended horizontally as much as needed by any case made in contrib. I want to avoid introducing a pattern that can not scale visually, the link in the top left doesn't.

philbar’s picture

Issue tags: +beta blocker

tag

Bojhan’s picture

Status: Needs review » Needs work

Back to needs work because of http://drupal.org/node/655416#comment-3135848 - common lets get this into core.

marcingy’s picture

Priority: Critical » Major

Changing to major as per tag.

MustangGB’s picture

Tag update

webchick’s picture

Priority: Major » Critical

No, this one is actually critical. The block preview page is quite simply broken.

casey’s picture

To fix issues like mentioned in #128 I suggested a #787940: Generic approach for position:fixed elements like Toolbar, tableHeader. This could be used here also. I'd like to invite everybody with some JS-experience to review that issue.

yoroy’s picture

FileSize
2.64 KB

Did another round of designs. Ksenzee and others brought up the 'ribbon' idea, a full-width strip of blue, also proposed by Mark Boulton for a similar use case: http://www.d7ux.org/edit-on-page/

Here's a mockup of that:
Bartik | d7

But compare this with the original proposal:
Bartik | d7

And you'll see that the full-width ribbon actually blends in more with the page, making it less attention-grabbing. The rounded-corner one on the left side sticks out more because it breaks the horizontal rhythm which in this case is a good thing.

Attaching patch that styles the link like in the second screenshot. Only thing missing is a font-family declaration. This link inherits styling from the front end theme. In the case of Bartik, that means it's shown using a serif font. I'd much prefer this link follows Seven styling and use a sans-serif. Should we bolt that directly onto blocks.css or should Bartik take care of this by specifying the font-family ehm, specifically?

yoroy’s picture

Status: Needs work » Needs review

status…

ksenzee’s picture

I'd say bolt it onto blocks.css, and individual themes can override it if they want, same as toolbar.

I'm attaching a patch that adds the font family to the backlink and merges yoroy's css with BTMash's #142. It also includes some comment edits. It works as I would expect it to with JS, without JS, and with and without the overlay enabled. It also stays in position on zoom as expected. (It looks bad when you get ridiculously large and toolbar has two rows, but everything looks bad at that size anyway.) Screenshots below:

You'll notice from the seven screenshot that the link covers up the Seven breadcrumbs. Not sure if we want to try to fix that or not. Personally I don't think it's a big deal - the point of this page is to demonstrate regions, not breadcrumbs.

The only other possible issue I see is that in Stark it does appear below the "Skip to main content" link - but I personally don't think that's a problem. It'll work fine in any css-only theme that pulls the "skip to main content" link out of the flow, which they should all be doing anyway. If we did want to fix it, the only thing I can think of is to hack in some jQuery to move the demo link above the skip link, and that's just wrong. Seems better to leave it as is.

casey’s picture

Reroll with #787940: Generic approach for position:fixed elements like Toolbar, tableHeader in mind. Combined with that patch this works perfectly fine.

kika’s picture

Loving ribbon area...for now -- even when it obscures some screen estate with no particular reason.
Hanging elements are cool in theory but they need to supercarefully designed a la OpenAtrium's "central drawer", not bolted on in very last moment.
And yep, its fonts need to fixed, to give a feel of being part of the toolbar.

Bojhan’s picture

@kika I disagree as yoroy noted a ribbon area will only adhere to the horizontal rhythm or really vertical rythm for that matter to (in many contrib themes) making it stand out less. This element needs to stand out.

Although I agree that "hanging elements" rarely bode well and never really quite make it - I dont feel this is designed uncarefully. I feel the interaction value it brings (hanging value, standing out, unique) outweighs the possible inability to scale in terms of interaction possibilities. Maybe Drupal 8 will bring a change to this but I feel somewhat awkward having such a significant "ribbon" idea added this last minute.

webchick’s picture

Right, and bear in mind we're talking about the general website building tool "Drupal core" here, not a polished product distribution like OpenAtrium. OA totally gets to cheat, because its developers have extremely finely-grained control over OA's theme and UX: they're hard-coded into the package. Where we have absolutely no idea what theme is going to be shown here, so we need to go with something default that will work in the 80% case.

yoroy’s picture

Somebody RTBC it then :)

amc’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Before: http://img.skitch.com/20100731-kfejdjkauxjqha83awt94emk44.jpg
After: http://img.skitch.com/20100731-rkycm9nwek96xwixdp5etshmpx.jpg

Much better! :D

Checked over the code and the functionality, and didn't catch anything out of the ordinary.

Committed to HEAD! GREAT job!!

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -Needs design review, -beta blocker, -webchick's D7 alpha hit list

Automatically closed -- issue fixed for 2 weeks with no activity.