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
1. Issue with the Button component outline in high contrast themes
For some reason there is this code, that draws the outline if @media (forced-colors: active). So on focus, the outline doesn't change, it's always visible.
2. Issue with the Link component outline in high contrast themes
Link has the native outline disabled and box-shadow used as the outline for some reason unknown to me. In @media (forced-colors: active) all of the box-shadows are removed and all of the backgrounds are set to the same color.
1. Issue with the
Button
component outline in high contrast themesFor some reason there is this code, that draws the outline if
@media (forced-colors: active)
. So on focus, the outline doesn't change, it's always visible.brand/packages/react/src/Button/Button.module.css
Lines 211 to 216 in 7473042
This caused the issue 👇 to be reported:
2. Issue with the
Link
component outline in high contrast themesLink has the native outline disabled and
box-shadow
used as the outline for some reason unknown to me. In@media (forced-colors: active)
all of thebox-shadows
are removed and all of the backgrounds are set to the same color.brand/packages/react/src/Link/Link.module.css
Lines 40 to 44 in 7473042
Also Link needs the
outline-offset
set to2px
It's just something I picked up along the way.
All high contrast issues are Sev 4 - so it's not a hurry on this. But could be cool for this to be sorted out and be consistent. 😘
The text was updated successfully, but these errors were encountered: