You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have decided to publish the component without a visible focus state to start with.
From @hannalaakso: The focused cookie banner is the first element on the page and the last thing the user
interacted with prior to it gaining focus. We therefore assume that moving focus to it is not going to surprise users, and that giving it a visible focus indicator could be more confusing than helpful, especially as the element is not normally keyboard operable.
We have flagged this in the research section of the guidance as something to monitor.
It's also worth noting that this is different to what we do with the notification banner which does have a visible focus indicator. However, the notification banner is further down the page and the user might not have interacted with it prior to it gaining focus so it is helpful to indicate to users that the focus has moved to it (even though the element, like the cookie banner, isn’t normally keyboard operable).
What
Further to #2098, we should add a focus style for the cookie banner. This could be similar to the notification banner focus state.
We could add this in #2126 or separately if we don't want to block merging that PR.
Why
The cookie banner needs to have a focus state as it should be focused after the user accepts or rejects cookies.
Who needs to know about this
Designer, developer
Done when
The text was updated successfully, but these errors were encountered: