question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch states not visible in High Contrast Mode

See original GitHub issue

Bootstrap 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alpadevcommented, Mar 25, 2021

@ffoodd

image

image

In v5 the situation is somewhat better because you can see the checked state image

Range sliders are invsible like in v4

0reactions
ffooddcommented, Mar 18, 2021

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 borders alongside background—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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found