Fix selected state visibility for font radio buttons and mode buttons in high contrast themes#649
Draft
Fix selected state visibility for font radio buttons and mode buttons in high contrast themes#649
Conversation
…d mode buttons In Windows high contrast themes (Aquatic, Desert), the selected state of font radio buttons (Sans Serif/Serif) and mode buttons (Article, etc.) was not visually distinguishable due to forced-colors overriding hardcoded CSS colors. Add explicit high contrast rules using CSS system color keywords (Highlight, HighlightText) to clearly indicate the selected/active state. Co-authored-by: KethanaReddy7 <[email protected]> Agent-Logs-Url: https://github.com/OneNoteDev/WebClipper/sessions/fc60bfbc-74fc-43f1-a7a2-e376898f9ca1
Copilot
AI
changed the title
[WIP] Fix focus visibility in high contrast theme for OneNote Clipper
Fix selected state visibility for font radio buttons and mode buttons in high contrast themes
Mar 23, 2026
|
@claude remove styling for claude buttons that you added. |
|
Claude finished @KethanaReddy7's task in 41s —— View job Clarification Needed
I've reviewed the changes in this PR, but I don't see any "claude buttons" styling. This PR adds styling for:
Both are high contrast accessibility fixes to make selected states visible in Windows high contrast themes. Could you clarify which styling you'd like me to remove? If you'd like me to remove both button styles, that would undo the accessibility fix this PR is meant to provide. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In Windows high contrast themes (Aquatic, Desert), the browser's
forced-colorsmode remaps hardcoded CSS colors to system colors, causing the selected state of font radio buttons (Sans Serif/Serif) and mode buttons (Article, Full Page, etc.) to be visually indistinguishable from their unselected states.Changes
src/styles/clipper.less— Added two rule blocks inside the existing@media (forced-colors: active)query:.control-button.active: explicitly setsHighlight/HighlightTextsystem colors so the selected font radio button is always visually distinct.modeButton.selected: same treatment for selected mode buttonsforced-color-adjust: noneopts these elements out of the browser's automatic color remapping; the CSS system color keywords (Highlight,HighlightText) then ensure correct, theme-aware contrast in all high contrast modes. No impact on non-high-contrast rendering.Original prompt
Work item: AB#10987393
Created via Azure DevOps
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.