Switch states not visible in High Contrast Mode
See original GitHub issueBootstrap 4.6: The states of a simple switch are not visible in Windows High Contrast Mode.
I used the following code from the documentation and enabled the High Contrast Mode with [Left-Alt]+[Left-Shift]+[Print].
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1">
<label class="custom-control-label" for="customSwitch1">Toggle this switch element</label>
</div>
The toggle indicator is not visible.
Here is a CodePen sample.
I believe this is a bug? Anybody knows a quick workaround?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Bootstrap Switch not visible in High Contrast Mode
To disable that override for part of a page, the element needs to be set to forced-color-adjust: none; Then the elements can be...
Read more >Turn high contrast mode on or off in Windows
Select the Start button, then select Settings > Ease of Access > High contrast. Turn on the toggle under Turn on high contrast....
Read more >The Guide To Windows High Contrast Mode
High Contrast mode is an accessibility feature that changes the look of our website and Windows applications by replacing the color of the ......
Read more >Windows High Contrast Mode And Accessibility Testing
To turn on high contrast mode, select the toggle button under Turn on high contrast. Windows may display a “Please wait” screen for...
Read more >Checkbox focus outline not visible in high contrast mode
No checkbox focus outline in high contrast mode Environment OS Windows 10 etc. Browsers IE11, Edge Chromium, Firefox Settings High Contrast ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ffoodd
In v5 the situation is somewhat better because you can see the checked state
Range sliders are invsible like in v4
Would you mind providing screenshots, please? Could help to see what happens, for non Windows user. 😃
Using system colors could help but should be scoped to high-contrast media queries, and support is not so great. Workaround would be using
border
s alongsidebackground
—which is the solution suggested by Adrian Roselli on his “Under-engineered toggles” post (in which he also enhances support using the high-contrast media query, too).