Skip to content

fix(docs-infra): improve Retro clear button visibility in dark mode#69428

Open
BHUVANSH855 wants to merge 1 commit into
angular:mainfrom
BHUVANSH855:theme/retro
Open

fix(docs-infra): improve Retro clear button visibility in dark mode#69428
BHUVANSH855 wants to merge 1 commit into
angular:mainfrom
BHUVANSH855:theme/retro

Conversation

@BHUVANSH855

Copy link
Copy Markdown
Contributor

PR Checklist

  • The commit message follows our guidelines
  • Tests for the changes have been added (not applicable)
  • Docs have been added / updated (not applicable)

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other

What is the current behavior?

In the Retro theme variants of the ARIA Autocomplete examples, the clear ("X") button uses --win95-shadow as its text color. This can result in poor contrast and reduced visibility, particularly in dark mode.

Screenshot 2026-06-18 220327

Issue Number: N/A

What is the new behavior?

  • Replaces --win95-shadow with --win95-dark-gray for the clear button text color.

  • Adds a --win95-dark-gray token to the Retro theme scope.

  • Updates the hover state to maintain consistent icon contrast.

  • Applies the change consistently across:

    • basic/retro
    • highlight/retro
    • manual/retro
Screenshot 2026-06-18 220310

This improves visibility of the clear button while preserving the Retro theme appearance.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This is a visual accessibility fix only. No Autocomplete functionality or behavior has been changed.

Replace the clear button color token in Retro autocomplete examples
to improve contrast and visibility in dark mode. Also add the
missing win95-dark-gray token and update hover styling for
consistent behavior across Retro variants.#
@pullapprove pullapprove Bot requested a review from kirjs June 18, 2026 16:42
@angular-robot angular-robot Bot added the area: docs-infra Angular.dev application and infrastructure label Jun 18, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 18, 2026
font-family: 'Press Start 2P';

--retro-button-color: #fff;
--win95-dark-gray: #4a4a4a;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That variable, if named as such is misplaced.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review @JeanMeche

I introduced --win95-dark-gray locally to improve the clear button contrast, but I noticed the Retro tree examples already define a Win95 token set that includes --win95-dark-gray with a different value.

Would you prefer that I align the autocomplete example with the existing Win95 token definitions, or use a more locally scoped variable for the clear button styling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adev: preview area: docs-infra Angular.dev application and infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants