Skip to content

A11y Bug 10987393: [OneNote Clipper] [Web] [high contrast]: After applying High Contrast theme, selected state focus is not visible.#649

Merged
KethanaReddy7 merged 3 commits intouser/kpeddireddy/LocationButtonTabfrom
copilot/on-clipper-fix-high-contrast-focus
Mar 26, 2026
Merged

A11y Bug 10987393: [OneNote Clipper] [Web] [high contrast]: After applying High Contrast theme, selected state focus is not visible.#649
KethanaReddy7 merged 3 commits intouser/kpeddireddy/LocationButtonTabfrom
copilot/on-clipper-fix-high-contrast-focus

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 23, 2026

In Windows high contrast themes (Aquatic, Desert), the browser's forced-colors mode 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 sets Highlight/HighlightText system colors so the selected font radio button is always visually distinct

Demo:
https://github.com/user-attachments/assets/ea220f99-9067-4754-9c14-0269eb0d537d

…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 <257986085+KethanaReddy7@users.noreply.github.com>
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
Copilot AI requested a review from KethanaReddy7 March 23, 2026 06:53
@aanchalbhansali aanchalbhansali changed the base branch from master to user/kpeddireddy/LocationButtonTab March 23, 2026 07:23
@aanchalbhansali aanchalbhansali changed the base branch from user/kpeddireddy/LocationButtonTab to master March 23, 2026 07:24
@KethanaReddy7
Copy link
Copy Markdown

@claude remove styling for claude buttons that you added.

@claude
Copy link
Copy Markdown

claude bot commented Mar 24, 2026

Claude finished @KethanaReddy7's task in 41s —— View job


Clarification Needed

  • Understand the request - identify which styling to remove
  • Review current changes in the PR
  • Make the requested changes
  • Commit and push

I've reviewed the changes in this PR, but I don't see any "claude buttons" styling. This PR adds styling for:

  1. .control-button.active - Font radio buttons (Sans Serif/Serif)
  2. .modeButton.selected - Mode buttons (Article, Full Page, etc.)

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.

@KethanaReddy7
Copy link
Copy Markdown

@claude remove styling for the mode buttons that you have added

@claude
Copy link
Copy Markdown

claude bot commented Mar 26, 2026

Claude finished @KethanaReddy7's task in 47s —— View job


Removed Mode Button Styling

  • Understand the request - remove .modeButton.selected styling
  • Review current changes in the file
  • Remove the mode button styling while keeping font radio button styling
  • Commit and push changes

Done! I've removed the .modeButton.selected high contrast styling from src/styles/clipper.less while keeping the .control-button.active styling for font radio buttons (Sans Serif/Serif).

Co-authored-by: KethanaReddy7 <KethanaReddy7@users.noreply.github.com>
@KethanaReddy7 KethanaReddy7 changed the title Fix selected state visibility for font radio buttons and mode buttons in high contrast themes A11y Bug 10987393: [OneNote Clipper] [Web] [high contrast]: After applying High Contrast theme, selected state focus is not visible. Mar 26, 2026
@KethanaReddy7 KethanaReddy7 marked this pull request as ready for review March 26, 2026 07:27
@KethanaReddy7 KethanaReddy7 changed the base branch from master to user/kpeddireddy/LocationButtonTab March 26, 2026 07:30
Copy link
Copy Markdown
Contributor

@aanchalbhansali aanchalbhansali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@KethanaReddy7 KethanaReddy7 merged commit d2b3aaa into user/kpeddireddy/LocationButtonTab Mar 26, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants