Skip to main content
Link
Question Protected by CommunityBot
Added link to new stacks docs
Source Link
Carrott Staff
  • 2.8k
  • 1
  • 13
  • 19

We’ve released a design update to focus styles across the many components within our design system and as well as a new design for our button group component. See more details on how we approach accessibility in our Stacks documentation.

We’ve released a design update to focus styles across the many components within our design system and as well as a new design for our button group component.

We’ve released a design update to focus styles across the many components within our design system and as well as a new design for our button group component. See more details on how we approach accessibility in our Stacks documentation.

Wrong word was used
Source Link

Prior to these recent changes, we would commonly apply a custom focus ring around elements to indicate an element was focused. There were several issues with this approach. For one, this focus ring was usually well below the 3:1 contrast ratio needed to meet WCAG (Level AA) standards. Also, the focus ring was always rendered as a ring outside of the focused element, meaning it would often be obscured when it exceeded the boundaries of its parent element. Additionally, we often set outline: none on elements that have this custom focus ring so an outline would not clash with our custom style, and since OS-level forced color modes often rely on applying an outline to indicate focus, our explicit removal of any outline meant that these force color modes couldwould not indicate that an element was focused.

TopbarTop bar

Prior to these recent changes, we would commonly apply a custom focus ring around elements to indicate an element was focused. There were several issues with this approach. For one, this focus ring was usually well below the 3:1 contrast ratio needed to meet WCAG (Level AA) standards. Also, the focus ring was always rendered as a ring outside of the focused element, meaning it would often be obscured when it exceeded the boundaries of its parent element. Additionally, we often set outline: none on elements that have this custom focus ring so an outline would not clash with our custom style, and since OS-level forced color modes often rely on applying an outline to indicate focus, our explicit removal of any outline meant that these force color modes could not indicate that an element was focused.

Topbar

Prior to these recent changes, we would commonly apply a custom focus ring around elements to indicate an element was focused. There were several issues with this approach. For one, this focus ring was usually well below the 3:1 contrast ratio needed to meet WCAG (Level AA) standards. Also, the focus ring was always rendered as a ring outside of the focused element, meaning it would often be obscured when it exceeded the boundaries of its parent element. Additionally, we often set outline: none on elements that have this custom focus ring so an outline would not clash with our custom style, and since OS-level forced color modes often rely on applying an outline to indicate focus, our explicit removal of any outline meant that these force color modes would not indicate that an element was focused.

Top bar

Swapped images to try and get more accurate sizing
Source Link
Carrott Staff
  • 2.8k
  • 1
  • 13
  • 19
Loading
edited tags
Link
V2Blast
  • 7.8k
  • 4
  • 37
  • 78
Loading
Accessibility: Only one <h1> tag per page (https://meta.stackexchange.com/a/394688/294691)
Source Link
Mithical
  • 84.5k
  • 28
  • 145
  • 315
Loading
Source Link
Carrott Staff
  • 2.8k
  • 1
  • 13
  • 19
Loading