Skip to content

Commit 41a351d

Browse files
fix(table): correct the WHCM text color
- in focused unselected rows, the text color was the same as the background color. This is now fixed, and should also distinguish the focused+selected rows from the focused+unselected rows as well.
1 parent 4b3ae22 commit 41a351d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/table/index.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@
195195
&.is-focused,
196196
&:focus-visible,
197197
&:focus {
198-
--highcontrast-table-row-text-color: var(--highcontrast-table-row-text-color-focus);
199198
--highcontrast-table-icon-color: var(--highcontrast-table-row-text-color-focus);
200199
--spectrum-table-row-text-color: var(--spectrum-table-row-text-color-key-focus);
201200

@@ -277,20 +276,20 @@
277276

278277
/* These styles get applied to the icon within that menu button. */
279278
& .spectrum-Table-menuButton {
280-
--mod-icon-color: var(--spectrum-table-icon-color);
279+
--mod-icon-color: var(--spectrum-table-header-icons-color-default);
281280

282281
&:hover {
283-
--mod-icon-color: var(--spectrum-table-icon-color-hover);
282+
--mod-icon-color: var(--spectrum-table-header-icons-color-hover);
284283
}
285284

286285
&:active {
287-
--mod-icon-color: var(--spectrum-table-icon-color-active);
286+
--mod-icon-color: var(--spectrum-table-header-icons-color-active);
288287
}
289288

290289
&:focus,
291290
&:focus:hover,
292291
&:focus-visible {
293-
--mod-icon-color: var(--spectrum-table-icon-color-key-focus);
292+
--mod-icon-color: var(--spectrum-table-header-icons-color-key-focus);
294293
}
295294
}
296295
}

0 commit comments

Comments
 (0)