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

Map navigation controls not visible in windows high contrast mode #5784

Closed
PascalvanOol opened this issue Dec 1, 2017 · 2 comments
Closed

Comments

@PascalvanOol
Copy link

mapbox-gl-js version: latest mapbox sample page

Steps to Trigger Behavior

  1. Change your windows theme to high contrast Decisions #1
  2. Open IE 11 browser
  3. Open "Display map navigation controls" example:
    https://www.mapbox.com/mapbox-gl-js/example/navigation/

Expected Behavior

Navigation controls to show a icon in contrasting color.

Actual Behavior

Navigation controls are shown all black.

@jfirebaugh
Copy link
Contributor

From my research, to fix this we need to avoid using background-image, which is ignored by IE11 in high-contrast modes. Instead, we should be using inline SVG with a rule such as:

@media screen and (-ms-high-contrast: active) {
  .button-icon {
    fill: ButtonText;
  }
}

https://css-tricks.com/accessible-svgs-high-contrast-mode/

@kkaefer
Copy link
Member

kkaefer commented Nov 1, 2019

Fixed by #8874. Please see #8874 (comment) for screenshots of how it looks in Windows High Contrast mode.

@kkaefer kkaefer closed this as completed Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants