Skip to content

Commit f2e29a0

Browse files
pksjcecolebemis
andauthored
Fix item color to not depend on inherit (#1470)
* Fix item color to not depend on inherit * Create sixty-jokes-compete.md Co-authored-by: Cole Bemis <colebemis@github.com>
1 parent ad0d5c6 commit f2e29a0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/sixty-jokes-compete.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/components": patch
3+
---
4+
5+
Fix ActionList.Item color

src/ActionList/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const getItemVariant = (variant = 'default', disabled?: boolean) => {
146146
}
147147
default:
148148
return {
149-
color: 'inherit',
149+
color: get('colors.fg.default'),
150150
iconColor: get('colors.fg.muted'),
151151
annotationColor: get('colors.fg.muted'),
152152
hoverCursor: 'pointer'

0 commit comments

Comments
 (0)