Apply new contrast feature syntax #4250
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Launch Checklist
CHANGELOG.md
under the## main
section.Fixes #4193: -ms-high-contrast vendor prefix is being deprecated, as per: https://blogs.windows.com/msedgedev/2020/09/17/styling-for-windows-high-contrast-with-new-standards-for-forced-colors/
This PR merges to main, but note in the linked issue that it is suggested this may be a breaking change...? I don't believe it is a breaking change - the behaviour for MS Edge remains unchanged, and the PR fixes a previously unknown issue with Firefox (potentially other browsers).
Before/after visuals
Used Windows in high contrast mode to test.
Edge
Before
After
Console warning is no longer present.
Firefox
Before
Note that Firefox did not appear to be working correctly beforehand (contrast of button elements too low):
After