The new design looks great, but why change the arrow orientation for closed-state?
As seen in the evolvingweb blog:

old vs new menu

The new arrows seem to try follow the logic of the arrows for accordions in the content area. But as is standard in menus, being placed right vs. left.

accordion details

This takes some meaning out of the right-pointing closed-state arrow i think, because it points away from the box, giving some "forward", or "go somewhere" notion, as it is present in the Navigation-PAGES:

nav. list

Sometimes menu designs use up-down arrows, sometimes down-up arrows, so there's quite some inconsistency, non-standardness on how to use arrows.
Why did you dismiss the logic from before?
Did you also considerk the + - (or + x)scheme? Seems this has less ambiguity and more logic to it (increase/decrease no. of menu items).

Comments

sirtet created an issue. See original summary.

ckrina’s picture

Thanks for your feedback @sirtet! It's really useful and we'll definitely take this into account. Probably it will be difficult to prioritize this on the MVP to have a beta release soon (so the next 1-2 months), but definitely we'll need to work on this because you made really good points and proposed really good alternatives.
We're trying to follow an approach where we launch an MVP and later we improve it, so this is a really good thing to take into account for incremental improvements over the next months.

ambient.impact’s picture

I very much agree with @sirtet on this, and hope to see it addressed. I personally feel that the default toolbar chevrons that point down when closed (indicating a sub-menu can be opened downwards), and pointing up (when sub-menu is open, indicating it will close up) make the most sense, but others may feel differently.

One issue that also bugs me is the use of the chevrons on the navigation pages that just link to an admin section - Seven also does this, so you may have just been following their precedent. I feel the chevrons on those should be replaced with a different icon or shape that doesn't use a chevron/arrow, to avoid confusing users.

Anyways, keep up the awesome work!

andrewmacpherson’s picture

Issue tags: +Accessibility

Unless we can find a way to make the front-end theme load the admin theme's toolbar CSS, then I think this should be postponed.

The original design outlook for the toolbar styling was that it should have a unified look on the front and back end. If the toolbar icons look different depending on whether you are looking at the front end or admin theme, then that's potentially very confusing. Particularly if the directions of the arrow are different. It could be a failure of WCAG success criterion 3.2.4 "Consistent Identification". (That success criterion is a fairly broad, and none of the example scenarios quite match this problem, so that's just my interpretation.)

huzooka’s picture

Project: Claro » Drupal core
Version: 8.x-1.0-alpha1 » 8.9.x-dev
Component: User interface » Claro theme
ambient.impact’s picture

@andrewmacpherson I definitely agree that the toolbar should be consistent between themes, as it could potentially become confusing for users, and really just feel inconsistent from a design point of view. In my opinion, the toolbar is overdue for a rework/redesign, but that feels out of scope of the Claro theme in addition to the issues you mention.

This brings up an interesting issue that I've been thinking about recently: while Drupal has a relatively robust theme system that allows an awesome amount of flexibility and variation between themes, anything that has to exist in multiple themes - such as the toolbar or contextual links - are in a weird grey area where they have to rely on aggressive CSS resets to come close to behaving like they're not affected by the current theme, and even then, the theme's CSS can sometimes still break that. That's more of an issue with how CSS works and possibly an argument for the Shadow DOM, but I felt it was worth thinking aloud.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

ckrina’s picture

Priority: Normal » Major
komalk’s picture

Status: Active » Needs review
StatusFileSize
new119.96 KB
new62.17 KB
new61.06 KB
new2.11 KB
KondratievaS’s picture

StatusFileSize
new199.11 KB

Tested patch from #9 for desktop and mobile and result is OK

OK

KondratievaS’s picture

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

Status: Reviewed & tested by the community » Active
Issue tags: +Needs design

I discussed this with @ckrina and she mentioned that we should have a designer work on this. One of the ideas she had was to use plus and minus icons instead of the arrow.

dyannenova’s picture

I think that the up/down chevrons are the most commonly used pattern, ex. they're used by AEM and IBM's Carbon.

Plus/minus might be clear enough, although I just did a quick test with a content editor and she was confused by the plus, thinking that it would allow her to immediately add content to the site.

lauriii’s picture

I looked at the IBM Carbon and it seems like they are using the arrow for indicating collapse status. A key difference was that they were consistently pointing the arrow downwards when the element could expanded, and upwards when the element could be collapsed. We are pointing the arrow to right in Toolbar and details element when the element could be expanded. Could that be one of the reasons it could be considered confusing? Maybe we should point the arrow downwards?

The second problem is that we use the same arrow for indicating links on the menu, even though the menu items cannot be expanded. If we make the Toolbar and details element arrow point downwards, maybe this problem is solved too. Then we have up and down pointing arrows when an element can be expanded, and if the arrow is pointing right, it has another meaning (highlighting links on the menu, backward and forward on pagination etc.).

dyannenova’s picture

I agree. I think downward and upward pointing arrows are less confusing than the current sideways/down. If we are consistent in using those for expanding components, and using sideways pointing arrows as an affordance for other interactions, like pagination or moving forward in some way, that should be clearer.

ckrina’s picture

Issue summary: View changes

Ok, It looks like even Nielsen is assuming this (up and down) is the proper position for arrows, so I guess all components should be updated to this.

yoroy’s picture

Status: Active » Needs work

It's a good idea to follow existing practices here. I personally also think the up/down position is the better, less unambiguous design.

Setting to "needs work" for the actual impementation.

bnjmnm’s picture

Status: Needs work » Needs review
Issue tags: -Needs design
StatusFileSize
new3.05 KB

Implemented. I think details (including high-contrast equivalents) is the only place this needs to be changed.

lauriii’s picture

Would be great if someone could also update the designs in Figma 🥳

dyannenova’s picture

I've updated the component in Figma.

lauriii’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
boulaffasae’s picture

I couldn't apply patch #18, i created a new patch #22.

Collapsed Menu
Expanded Menu
Collapsed Menu
Expanded Menu

lauriii’s picture

Issue tags: -Needs reroll

Thanks for the reroll!

Status: Needs review » Needs work

The last submitted patch, 22: 3057772-22.patch, failed testing. View results

sd9121’s picture

Assigned: Unassigned » sd9121
sd9121’s picture

Assigned: sd9121 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.54 KB

Please review this patch.

Thanks!

bnjmnm’s picture

Status: Needs review » Needs work
StatusFileSize
new154.93 KB
new44.37 KB

This is looking good on standard contrast/English! Spotted two things that need to be adjusted for specific use cases:

  1. In IE11 high contrast mode, the closed icon is not pointing up
  2. In RTL, the the icon should rotate towards the text instead of away from it.
sd9121’s picture

Assigned: Unassigned » sd9121
sd9121’s picture

Assigned: sd9121 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new3.83 KB

Please review this patch.

Thanks!

bnjmnm’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @sd9121!

Tested on every OSX browser + Windows standard + high contrast in Edge, IE11 and Firefox. In each instance the disclosure icon points and animates in the correct direction, per the requirements of this issue.

I did notice that in Windows high-contrast Firefox, the disclosure icons have insufficient contrast, but that is also an issue in HEAD, and I have reported it in the meta issue regarding high contrast in Claro: #3080100: Assess accessibility of Claro in High Contrast AKA forced colors mode

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new8.53 KB

It seems like as a result of this patch, the arrow is not positioned correctly in relation to the summary in IE 11 high contrast:

katherined’s picture

Status: Needs work » Needs review
StatusFileSize
new4.04 KB
new1.13 KB

I think this takes care of it.

bnjmnm’s picture

Status: Needs review » Needs work

#32 makes the issue less glaring, but now the arrow is too low when it is pointing down. It looks like the underlying problem is due to how the "arrow" for high-contrast mode is created: adding a border to the top and right sides of an element and rotating that element so the borders point up/down. The axis of rotation is in the center of that element, not taking into account the 2px borders on 2/4 of its sides. To ensure a good rotation center, it would work better to have a 2px border on all sides, and make the previously-0px borders set to color: transparent. This will result in a rotation center that behaves as one would expect. It may be necessary to tweak the size of the element after doing this.

katherined’s picture

StatusFileSize
new4.42 KB
new1.67 KB
new93.46 KB
new57.27 KB

Thanks, @bnjmnm! Now that you point that out, I think altering the border and then only applying the top margin to the open state gets the arrow where it needs to be, more confined to the text's line height, and rotating as expected.

Patch 32

Patch 34

katherined’s picture

Status: Needs work » Needs review
bnjmnm’s picture

+++ b/core/themes/claro/css/components/details.pcss.css
@@ -158,19 +158,22 @@
 
 @media screen and (-ms-high-contrast: active) {
+  .claro-details[open] > .claro-details__summary::before {
+    margin-top: calc(0.125rem / -2) !important;
+  }

I like to encourage accompanying each !important with a comment explaining why it was needed. I took a look to see why it was needed here and was pleased to see it is avoidable.

The !important being used here to get priority over a rule that occurs a bit further down in the same file. Just changing that rule eliminates the need to introduce it here with an !important

@media screen and (-ms-high-contrast: active) {
  .claro-details__summary:hover::before,
  .claro-details__summary:hover:focus::before {
    background: none;
  }

  .claro-details[open] > .claro-details__summary::before,
  [dir="rtl"] .claro-details[open] > .claro-details__summary::before {
    /* This one down here */
    margin-top: calc((0.5625rem / -2) - 0.125rem);
    margin-right: 0.125rem;
    transform: rotate(-45deg); /* for LTR and RTL */
    background: none;
  }
}
bnjmnm’s picture

Status: Needs review » Needs work
katherined’s picture

Status: Needs work » Needs review
StatusFileSize
new4.28 KB
new4.76 KB

Ah, yes. It is right there. :)

bnjmnm’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new285.79 KB

Looks good!

High contrast mode was the only thing that needed addressing since it was last RTBC'd, and since that is good now, it is back to RTBC.

  • lauriii committed 7982e4a on 9.1.x
    Issue #3057772 by katherined, sd9121, boulaffasae, bnjmnm, komalkolekar...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Committed 7982e4a and pushed to 9.1.x. Thanks!

Status: Fixed » Closed (fixed)

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