Comments

joelpittet’s picture

Assigned: joelpittet » Unassigned
Status: Active » Needs review
StatusFileSize
new440 bytes

This I think may have been a regression. Here is the fix for the vertical toolbar.

Because the horizontal mode has the LI's as float: left; the display: will work for both and is the simpler patch.

davidhernandez’s picture

Zombiecraze’s picture

Tested in Firefox 35.0 & Chromium 39.0.2171.65 on Linux and seems to fix the reported issue

AlfredK’s picture

Tested on Safari Version 8.0.2 (10600.2.5) and Chrome Version 40.0.2214.85 beta (64-bit) on OXS Yosemite 10.10.1. Fixed reported issue

joelpittet’s picture

sivaramakrishnan’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new167.59 KB
new123.35 KB

Tested and Reviewed in Chrome and Firefox on linux.
also tested in windows - opera, chrome,firefox and ie 11.

attached screenshots for linux.
Toolbar Firefox
Screenshot on Chrome:
Toolbar Chrome

lewisnyman’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: -fontend, -D8UX usability, -Needs manual testing +frontend, +Usability

I'd like some feedback from Wim before we commit this. We were discussing this in #1855066: In the "menu" toolbar tray, clicking/tapping white space should show the child level

joelpittet’s picture

Assigned: Unassigned » wim leers

adding bat symbol

SteveK’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new87.92 KB
new101.41 KB

Applied the patch and works as expected.

Tested on Firefox + Chrome on OSX.

Chrome (OSX)

Firefox (OSX)

davidhernandez’s picture

Status: Reviewed & tested by the community » Needs work

This requires more discussion. Lets leave it at 'Needs review" for now, please.

davidhernandez’s picture

Status: Needs work » Needs review

Oops

joelpittet’s picture

Assigned: wim leers » Unassigned
Status: Needs review » Reviewed & tested by the community

Back to RTBC. From the other queue:

@Wim Leers

Ok so it was the entire row that got the gray background.

I agree with the visual problem (the entire row should still get that grayness), but I disagree with the ideal hit areas you propose. "text == menu item hit area" is simple. "text plus some white space === menu item hit area" is impossible to convey, even more so because the width of the text varies, which would make that nearly impossible to implement.

The visual problem is clear. But do you really have problems with the hit area?

wim leers’s picture

Status: Reviewed & tested by the community » Needs work

With the toolbar in vertical orientation, clicking in the middle of the whitespace between the "Structure" link text and the arrow…

HEAD
… toggles the child level, i.e. it's equivalent with clicking the arrow. This is the behavior that #1855066: In the "menu" toolbar tray, clicking/tapping white space should show the child level introduced (as that issue title also says).
this patch
… opens the "Structure" page, i.e. it's equivalent with clicking the "Structure" link.

Sorry :(

joelpittet’s picture

Assigned: Unassigned » wim leers
Status: Needs work » Needs review

@Wim Leers do you have any UX patterns that support this pattern of click off the arrow would toggle the opening and closing of the children and not the link?

From my experience the action always happens on the link and the hit area for the arrow is acceptable for fingers on touch devices.

joelpittet’s picture

This is the closest pattern I could find that does parent link and toggle.
http://jasonweaver.name/lab/flexiblenavigation/

The only other ones I spotted were toggle only parents that had no links OR, they dumpped the parent link in the toggle (Foundation http://foundation.zurb.com/docs/components/topbar.html#mobile-parent-links).

wim leers’s picture

I don't have supporting UX patterns, only the UX that benjifisher — the person who opened that other issue — and I found frustrating: those arrows are frustratingly small hit areas on touch devices:

I vote for making the white space do the same as the icon. For one thing, the icon is small and easy to miss with my fat fingers. For another thing, anything that reduces the chance of an accidental page load (slow) compared to changing the state of the menu (fast) is a good idea IMHO.


I'd swear #1855066: In the "menu" toolbar tray, clicking/tapping white space should show the child level got a usability review, but apparently/clearly it did not. So if the behavior introduced there should be undone for UX reasons, so be it. This is also what Lewis Nyman said in #1855066-22: In the "menu" toolbar tray, clicking/tapping white space should show the child level: I think it's more what is the expected behaviour based on common implementations of this UI component.

lewisnyman’s picture

Assigned: wim leers » Unassigned

I don't have supporting UX patterns, only the UX that benjifisher — the person who opened that other issue — and I found frustrating: those arrows are frustratingly small hit areas on touch devices:

But the solution goes too far the other way, the hit areas for the arrows are now too big in some situations, and the parent link is too small.

I don't think this is an either/or issue. We can solve both of these problems by increasing the width of the arrow manually while maintaining the full width behaviour added in the patch in this issue.

wim leers’s picture

Sounds good!

Sorry for the delay on my part here. And for getting it wrong the first time.

joelpittet’s picture

Status: Needs review » Needs work

Ok good idea, I'll post a patch with a wider hit area for the arrow tonight unless someone wants to take this in the meantime.

Thank you for the feedback @Wim Leers and @LewisNyman

joelpittet’s picture

Status: Needs work » Needs review
StatusFileSize
new15.22 KB
new15.78 KB
new1.12 KB
new1.41 KB

I added some padding to the left so the text was less likely to run into the hit area of the button so there would be no confusion of what is toggle button and which part is link.

joelpittet’s picture

StatusFileSize
new935 bytes
new1.42 KB

Same screenshots but this make sure it doesn't touch the horizontal toolbar padding.

joelpittet’s picture

Issue tags: +Needs manual testing
skippednote’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new24.17 KB
new25.23 KB

Working as expected. The whole button is getting the hover/active state effect and the sub-menu button area is getting greyed out when clicking on the toggle arrow.

idebr’s picture

Status: Reviewed & tested by the community » Needs work

Changes look good! I found some css standards that should to be fixed before committing

  1. +++ b/core/modules/toolbar/css/toolbar.icons.css
    @@ -59,6 +59,15 @@
    +.toolbar .toolbar-tray-vertical .menu a {
    +  padding-left: 2.75em;
    +  padding-right: 4em;
    +}
    

    For direction specific property/values, add the comment /* LTR */ on the same line preceded by a single space.

  2. +++ b/core/modules/toolbar/css/toolbar.icons.css
    @@ -59,6 +59,15 @@
    +[dir="rtl"]  .toolbar .toolbar-tray-vertical .menu a {
    

    Found two spaces after [dir="rtl"], expected one space.

  3. +++ b/core/modules/toolbar/css/toolbar.menu.css
    @@ -14,7 +14,7 @@
     .toolbar .toolbar-box a {
    -  display: inline-block;
    +  display: block;
     }
    

    display: block; is the default for links in the toolbar, so this rule can be removed. See toolbar.module.css line 41/44.

    .toolbar a {
      display: block;
      line-height: 1;
    }
joelpittet’s picture

Status: Needs work » Needs review
Issue tags: -Needs manual testing
StatusFileSize
new1.47 KB
new1.13 KB

Thank you for the review @idebr!

I hope I got the LTR comment right, I'd much rather put the LTR stuff in [dir="ltr"] stuff and be explicit about it.

Other than the removal of the display block, which I checked still works, is there anything else?

idebr’s picture

Status: Needs review » Needs work

@joelpittet Thanks for picking this up.

I hope I got the LTR comment right, I'd much rather put the LTR stuff in [dir="ltr"] stuff and be explicit about it.

You are not the first to argue this and there are more that agree :). Let's follow the current standards for now and leave this discussion for a followup.

Just a minor issue left:

+++ b/core/modules/toolbar/css/toolbar.icons.css
@@ -61,9 +61,9 @@
 .toolbar .toolbar-tray-vertical .menu a {
   padding-left: 2.75em;
-  padding-right: 4em;
+  padding-right: 4em; /* LTR */
 }
-[dir="rtl"]  .toolbar .toolbar-tray-vertical .menu a {
+[dir="rtl"] .toolbar .toolbar-tray-vertical .menu a {
   padding-left: 4em;
   padding-right: 2.75em;
 }

The /* LTR */ comment is per attribute, so it should be added to padding-right as well as padding-left.

joelpittet’s picture

Status: Needs work » Needs review
StatusFileSize
new579 bytes
new1.48 KB

@idebr thanks, I was thinking I should do that too.

idebr’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new155.53 KB

Cheers! All CSS coding standards have been addressed.

Screenshot after for good measure:

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 0fe7e02 and pushed to 8.0.x. Thanks!

  • alexpott committed 0fe7e02 on 8.0.x
    Issue #2409427 by joelpittet, SteveK, sivaramakrishnan, skippednote,...

Status: Fixed » Closed (fixed)

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