Skip to content

Commit 114c826

Browse files
joshblackhectahertz
authored andcommitted
fix(LinkItem): pass through variant prop when flag is disabled (#5958)
1 parent 81a3475 commit 114c826

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/mighty-shrimps-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Update ActionList.LinkItem to pass through the `variant` prop when the CSS Modules flag is disabled

packages/react/src/ActionList/LinkItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const LinkItem = React.forwardRef(
109109
sx={{paddingY: 0, paddingX: 0}}
110110
inactiveText={inactiveText}
111111
data-inactive={inactiveText ? true : undefined}
112+
variant={variant}
112113
_PrivateItemWrapper={({children, onClick, ...rest}) => {
113114
const clickHandler = (event: React.MouseEvent<HTMLElement>) => {
114115
onClick && onClick(event)

0 commit comments

Comments
 (0)