Skip to content

Commit cab8d6a

Browse files
Copilotcubap
andauthored
Fix select dropdown option colors in page-selector component (#456)
* Initial plan * Fix select dropdown option styling for better contrast Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> * Use browser-native selection styling for better compatibility Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> * Use CSS system colors for better accessibility and theme compatibility Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
1 parent 73945a8 commit cab8d6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/page-selector/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export default class PageSelector extends HTMLElement {
120120
font-family: inherit;
121121
cursor: pointer;
122122
}
123+
select option {
124+
background-color: Canvas;
125+
color: CanvasText;
126+
}
123127
</style>
124128
<select part="select" aria-label="Select page">
125129
${optionsHtml}

0 commit comments

Comments
 (0)