Skip to content

Commit

Permalink
Merge 3fd96e1 into a9fab98
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti authored Jul 23, 2024
2 parents a9fab98 + 3fd96e1 commit bd41f2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-shrimps-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Prevents inactive indicator icon/tooltip from appearing in ActionMenu items
4 changes: 2 additions & 2 deletions packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
<ItemWrapper {...wrapperProps}>
<Selection selected={selected} />
<VisualOrIndicator
inactiveText={inactiveText}
inactiveText={showInactiveIndicator ? inactiveText : undefined}
itemHasLeadingVisual={Boolean(slots.leadingVisual)}
labelId={labelId}
loading={loading}
Expand Down Expand Up @@ -386,7 +386,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
{slots.inlineDescription}
</ConditionalWrapper>
<VisualOrIndicator
inactiveText={inactiveText}
inactiveText={showInactiveIndicator ? inactiveText : undefined}
itemHasLeadingVisual={Boolean(slots.leadingVisual)}
labelId={labelId}
loading={loading}
Expand Down

0 comments on commit bd41f2b

Please sign in to comment.