Skip to content

Fix select dropdown option colors in page-selector component#456

Merged
thehabes merged 4 commits intomainfrom
copilot/fix-weird-highlight-select
Feb 12, 2026
Merged

Fix select dropdown option colors in page-selector component#456
thehabes merged 4 commits intomainfrom
copilot/fix-weird-highlight-select

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Select dropdown options displayed inverted colors on Edge—unselected options appeared dark while selected options appeared light.

Before:
Before

Changes

  • Added explicit option element styling within tpen-page-selector shadow DOM
  • Uses CSS system colors (Canvas/CanvasText) to respect user theme preferences
select option {
    background-color: Canvas;
    color: CanvasText;
}

System colors automatically adapt to light/dark mode and high contrast settings. Browser handles selection highlighting natively.

After:
After

Files Changed

  • components/page-selector/index.js
Original prompt

This section details on the original issue you should resolve

<issue_title>weird highlight in select</issue_title>
<issue_description>Image

On Edge, this looks backwards. Options should be white or light with blue or gray as the selected color.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 12, 2026 16:21
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix weird highlight in select options for Edge Fix select dropdown option colors in page-selector component Feb 12, 2026
Copilot AI requested a review from cubap February 12, 2026 16:27
@cubap cubap marked this pull request as ready for review February 12, 2026 17:01
@github-actions
Copy link
Contributor

Copy link
Member

@cubap cubap left a comment

Choose a reason for hiding this comment

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

@cubap cubap requested a review from thehabes February 12, 2026 17:25
@cubap
Copy link
Member

cubap commented Feb 12, 2026

@thehabes Take a look at my review above and see if you find the same behavior.

@thehabes
Copy link
Member

image

@thehabes thehabes requested review from thehabes and removed request for thehabes February 12, 2026 19:04
@thehabes thehabes merged commit cab8d6a into main Feb 12, 2026
2 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.

weird highlight in select

3 participants