Skip to content

Commit 2a2a194

Browse files
committed
docs(docs-infra): Fix combobox dialog styles for dark theme
Fixes combobox dialog styles to ensure correct text color and contrast in dark theme. This improves readability and visual consistency when using the docs in dark mode.
1 parent 5a146b3 commit 2a2a194

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

adev/src/content/examples/aria/combobox/src/dialog/app/app.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@
7474
outline: none;
7575
font-size: 1rem;
7676
padding: 0.7rem 1rem 0.7rem 2.5rem;
77-
background-color: var(--mat-sys-surface);
77+
background-color: var(--septenary-contrast);
78+
color: var(--primary-contrast);
7879
}
7980

8081
.popover {
8182
margin: 0;
8283
padding: 0;
8384
border: 1px solid var(--border-color);
8485
border-radius: 0.25rem;
85-
background-color: var(--mat-sys-surface);
86+
background-color: var(--septenary-contrast);
8687
}
8788

8889
[ngListbox] {
@@ -138,6 +139,8 @@
138139
padding: 0;
139140
border: 1px solid var(--border-color);
140141
border-radius: 0.25rem;
142+
background-color: var(--septenary-contrast);
143+
color: inherit;
141144
}
142145

143146
.dialog .combobox-input-container {

adev/src/content/examples/aria/combobox/src/dialog/material/app/app.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
justify-content: center;
66
font-family: var(--inter-font);
77
--border-color: color-mix(in srgb, var(--full-contrast) 20%, var(--page-background));
8+
--primary: var(--vivid-pink);
89
}
910

1011
[ngCombobox] {
@@ -74,7 +75,8 @@
7475
outline: none;
7576
font-size: 1rem;
7677
padding: 0.7rem 1rem 0.7rem 2.5rem;
77-
background-color: var(--mat-sys-surface);
78+
background-color: var(--septenary-contrast);
79+
color: var(--primary-contrast);
7880
}
7981

8082
[ngListbox] {
@@ -131,6 +133,8 @@
131133
bottom: auto;
132134
border: 1px solid var(--border-color);
133135
border-radius: 1rem;
136+
background-color: var(--septenary-contrast);
137+
color: inherit;
134138
}
135139

136140
.dialog .combobox-input-container {

adev/src/content/examples/aria/combobox/src/dialog/retro/app/app.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
padding: 0 0.5rem;
7777
position: absolute;
7878
opacity: 0.8;
79+
color: #000;
7980
}
8081

8182
.arrow-icon {
@@ -84,6 +85,7 @@
8485
right: 0;
8586
opacity: 0.8;
8687
transition: transform 0.2s ease;
88+
color: #000;
8789
}
8890

8991
[ngComboboxInput][aria-expanded='true'] + .arrow-icon {
@@ -145,7 +147,8 @@
145147
}
146148

147149
[ngCombobox]:focus-within [data-active='true'] {
148-
outline: 2px solid color-mix(in srgb, var(--vivid-pink) 80%, transparent);
150+
outline: 2px dashed var(--vivid-pink);
151+
outline-offset: -2px;
149152
}
150153

151154
.dialog {
@@ -158,6 +161,8 @@
158161
padding: 0;
159162
border: none;
160163
box-shadow: var(--retro-flat-shadow);
164+
background-color: var(--septenary-contrast);
165+
color: inherit;
161166
}
162167

163168
.dialog .combobox-input-container {
@@ -170,7 +175,7 @@
170175
}
171176

172177
.dialog [ngComboboxInput] {
173-
border-bottom: 4px solid #000;
178+
border-bottom: 4px solid var(--gray-700);
174179
}
175180

176181
.dialog [ngCombobox]:focus-within [ngComboboxInput] {

0 commit comments

Comments
 (0)