Skip to content

fix: dropdown contrast focus styles#14017

Merged
andreancardona merged 42 commits into
carbon-design-system:mainfrom
andreancardona:12720-dropdown-contrast
Jun 28, 2023
Merged

fix: dropdown contrast focus styles#14017
andreancardona merged 42 commits into
carbon-design-system:mainfrom
andreancardona:12720-dropdown-contrast

Conversation

@andreancardona

@andreancardona andreancardona commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

Closes #12720

Paired up with @francinelucca - got a good solution going 🎉

Screenshot 2023-06-15 at 17 10 07

Testing / Reviewing

  • This must be tested with keyboard navigation
  • Make sure Dropdown, Combox & Multiselect have the above focus styling and the light-grey background has been removed - through all the different variants
  • Hover styles should remain the same on mouse
  • @kingtraceyj tagging you for a visual review :)

andreancardona and others added 30 commits March 31, 2023 10:43
Co-authored-by: Francine Lucca <40550942+francinelucca@users.noreply.github.com>
…ancardona/carbon into contained-list-persistent-search-3
Co-authored-by: Francine Lucca <francinelucca@users.noreply.github.com>
… branch 'contained-list-persistent-search-3' of github.com:andreancardona/carbon into contained-list-persistent-search-3

@kingtraceyj kingtraceyj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

focus styles match spec. looks good to go! 💥

@guidari guidari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I just added a aria-owns in the ComboBox.tsx because when we turn on the VO in FireFox it closes the ComboBox when the user tries to navigate.
Let me know if that make sense

@andreancardona

Copy link
Copy Markdown
Contributor Author

Trying to see the best way to fix the failing avt test

@guidari

guidari commented Jun 27, 2023

Copy link
Copy Markdown
Contributor

Trying to see the best way to fix the failing avt test

Is this related to the aria-owns that was added @andreancardona ? Looks like the tests broke after that addition
I'll take a look to help fix it

@andreancardona

Copy link
Copy Markdown
Contributor Author

Trying to see the best way to fix the failing avt test

Is this related to the aria-owns that was added @andreancardona ? Looks like the tests broke after that addition I'll take a look to help fix it

yep it is related - just trying to find a solution for both the test and the FF bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[a11y]: Dropdown component contrast for item with focus/selection fails

7 participants