Skip to content

Commit c345bd3

Browse files
Fix unreadable secondary text in dropdown-item on hover/focus (#1488)
* Fix unreadable secondary text in dropdown hover * More widely applicable readability fix Co-authored-by: Jon Rohan <rohan@github.com> * Fix whitespace * Create moody-apes-study.md Co-authored-by: Jon Rohan <rohan@github.com>
1 parent 9d0aad0 commit c345bd3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/moody-apes-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Fix unreadable text when utility is used in dropdown item.

src/dropdown/dropdown.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@
9494
color: inherit;
9595
opacity: 1;
9696
}
97+
98+
[class*="color-text-"] {
99+
color: inherit !important;
100+
}
97101
}
98102

99103
&.btn-link {

0 commit comments

Comments
 (0)