-
Notifications
You must be signed in to change notification settings - Fork 332
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
Improve accordion presentation in Firefox High Contrast mode #2321
Comments
We'll check in on this on the accessibility clinic. Below, the current visual, the new visual and an alternative which is perhaps somewhat closer to the current behaviour as the buttons fit the size of their contents. But we're not really sure whether the alternative is an improvement in any sense, or whether the new visual that demonstrates the size of the touch area is a better solution. Current FF high contrast modeNew FF High Contrast modeAlternative new FF High Contrast mode |
From accessibility clinic:
If we keep the existing design, we should add a border between the sections to
We'll discuss the alternatives in our catch up next week, moving to Blocked until we've had the meeting. |
Fix pushed to #2257 We didn't implement the alternative design discussed at the accessibility clinic because that could have led to a WCAG fail unless we changed the hover state style too (currently both the hover state and Bottom border fix to separate sectionsWe've added a thick transparent bottom border (similar to what we do on the cookie banner to solve a similar issue) to separate the sections a bit more visually and this seems to improve the presentation. Windows High Contrast Mode Edge 91, with border fixFirefox when user changes their colours, with border fixContained elements break out by 1px in Firefox when user changes coloursThis impacts Firefox High Contrast mode since it shows the outline of We remove the native button border and margin which makes the enclosed elements (which are aligned left and flush against the edge of the component) break out of the button container by 1px, creating a slightly jagged edge when user changes the colours in the browser in Firefox - the screen grab below demonstrates this. This issue is actually present in the current Design System accordion too: the heading inside the button protrudes very slightly out of the container when user changes colours in Firefox but this isn't noticeable since in that design the button is only around the heading element. We had initially considered adding a Firefox-high-contrast-mode only hack in this new design to hide the overflow of the container but this interferes with the rendering of the focus state, so I think we'll have to leave it as is, it's a minor issue. More discussion about the issues discussed in this comment can be found here: #2321 |
What
We should review whether we want to improve the rendering of the component in Firefox High Contrast mode, the new behaviour feels like a potential regression since the buttons are now large block containers.
The content also slightly breaks out of the container due to the borders on the button being reset. This is less of an issue but we could look at it whilst reviewing the button size in FF High Contrast mode.
Why
We want to ensure that the component can be used in FF High Contrast mode. It might be safest to stay close to the existing behaviour since we don't have any evidence that an alternative design would work for users.
Who needs to know about this
Developers
Done when
The text was updated successfully, but these errors were encountered: