Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropdownMenu: aria-checked state is visually unclear #53771

Open
Marc-pi opened this issue Aug 17, 2023 · 5 comments
Open

DropdownMenu: aria-checked state is visually unclear #53771

Marc-pi opened this issue Aug 17, 2023 · 5 comments
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Needs Design Needs design efforts. [Package] Components /packages/components [Type] Bug An existing feature does not function as intended

Comments

@Marc-pi
Copy link

Marc-pi commented Aug 17, 2023

Description

This an old UX issue : the blue highlight is not aligned with the active state
and it brings confusion : user is clicking again on the desired value, and by clicking he's desactivating it !!!
This is very annoying

ping @richtabor > this is another quickwin issue :-)

Step-by-step reproduction instructions

  1. Use a block that permits to select container width within the toobar (ex: group > row)
  2. Select the 3nd value of the dropdown
  3. Click again and observe the blue hightlight, that is always set on the first elements, despite it is the first that is activated
    • the icon is turned plain black, but the higlight is not set on the right value

Screenshots, screen recording, code snippet

image

Environment info

  • WP6.3 and below
  • Gutenberg 16.5 and below

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Ren2049
Copy link

Ren2049 commented Aug 18, 2023

Also I find the black background not enough to indicate the selected state, it could be blue and maybe even cover the entire cell including the text. With a black background it looks like an icon, not like a state.

@Mamaduka
Copy link
Member

The outline/highlight indicates the focused element. When you open any drop-down, the first item receives the focus; doing otherwise will be an accessibility issue.

@Ren2049
Copy link

Ren2049 commented Aug 18, 2023

Then please consider changing the background color of the selected state/cell to a light blue.

@Marc-pi
Copy link
Author

Marc-pi commented Aug 18, 2023

yep, the UI behavior drives my customer crazy, it is not natural and brings confusion (seems the feature is buggy)
adjustements about color / focus are needed, it is one of the most frequent feature in use when we build our templates

as stated by @Ren2049

Double clicks to deselect layout icons is counter intuitive, can lead to layout issues
Only deselect by selecting something else.

i wanted for months to publish this issue also

poke @richtabor

The outline/highlight indicates the focused element. When you open any drop-down, the first item receives the focus; doing otherwise will be an accessibility issue.

why not focus the current active instead of the first one in any case ???

@mirka mirka changed the title Block Editor > Block Toolbar > Component Drop Down Menu > wrong state highlighted DropdownMenu: aria-checked state is visually unclear Dec 15, 2023
@mirka mirka added Needs Design Feedback Needs general design feedback. [Package] Components /packages/components [Type] Enhancement A suggestion for improvement. and removed [Feature] Component System WordPress component system [Type] Bug An existing feature does not function as intended labels Dec 15, 2023
@afercia afercia added [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Needs Design Needs design efforts. [Type] Bug An existing feature does not function as intended and removed Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement. labels Sep 2, 2024
@afercia
Copy link
Contributor

afercia commented Sep 2, 2024

The highlight is actually the focus indication and it is required.

Also I find the black background not enough to indicate the selected state

Rather, I'd consider to improve the indication of the selected state. I'd agree the icon background/fill color change isn't a great indicator in a dropdown menu. Worth noting this issue applies to other menus as well, e.g. the 'Justify' menu.

To me, the editor uses too many, different, visual patterns to indicate the selected item in a menu. FOr example: a checkmark or a dot, or an icon with inverted colors. See screenshot with a couple examples:

Screenshot 2024-09-02 at 09 55 11

In my opinion, a good UI should only use one pattern to indicate selection in a dropdown menu to provide a choesive, predictable experience to users. As such, I'd think this needs some new deisign to consider the selection indication holistically throughout hte whole editor UI.

Raising this issue from enhancement ot bug, as lack of clarity in the UI is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). Needs Design Needs design efforts. [Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

6 participants