Skip to content
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 focus state for radio and checkbox controls in forced colors mode (for example, Windows High Contrast Mode) #2264

Merged
merged 2 commits into from
Jul 2, 2021

Commits on Jul 1, 2021

  1. Improve focus for controls in forced color mode

    The focus state for radios and checkboxes is currently not very visible in high contrast mode or when colours are overridden in Firefox – the only visible change is that the outer border of the radio or checkbox control thickens from 2px to 4px. This is the same as the part of the focus state change that meets contrast, but omits the yellow ‘ring’ created by the box shadow.
    
    Add an additional transparent outline to the control. In forced colors mode, transparent borders become solid (matching the text / foreground color) and so we get an additional outline around the focused control making it clearly visible.
    
    When explicitly in forced-color mode, we can enhance the outline further by using the Highlight system color, which matches the color used by the focus state of native controls – at least in in Edge / Chrome / Opera which are the only other browsers to support forced color mode.
    36degrees committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    7dcba7d View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Document in CHANGELOG

    36degrees committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    775d940 View commit details
    Browse the repository at this point in the history