Skip to content

Commit

Permalink
Merge 16112b1 into 964db80
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti authored Jun 7, 2024
2 parents 964db80 + 16112b1 commit def37d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions packages/react/src/ActionList/Visuals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ export const LeadingVisual: React.FC<React.PropsWithChildren<VisualProps>> = ({s
{
color: getVariantStyles(variant, disabled, inactive).iconColor,
svg: {fontSize: 0},
'[data-variant="danger"]:hover &, [data-variant="danger"]:active &': {
color: getVariantStyles(variant, disabled, inactive).hoverColor,
},
'[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover &, [data-variant="danger"]:active &':
{
color: getVariantStyles(variant, disabled, inactive).hoverColor,
},
},
sx as SxProp,
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ export const InactiveItems = () => (
<GearIcon />
</ActionList.LeadingVisual>
</ActionList.LinkItem>
<ActionList.Item onSelect={() => alert('Make a copy clicked')} inactiveText="Unavailable due to an outage">
<ActionList.Item
variant="danger"
onSelect={() => alert('Make a copy clicked')}
inactiveText="Unavailable due to an outage"
>
Make a copy
<ActionList.LeadingVisual>
<CopyIcon />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ exports[`snapshots renders a menu that contains an item to add to the menu 1`] =
font-size: 12px;
}
[data-variant="danger"]:hover .c4,
[data-variant="danger"]:not([aria-disabled]):not([data-inactive]):hover .c4,
[data-variant="danger"]:active .c9 {
color: var(--fgColor-default,var(--color-fg-default,#1F2328));
}
Expand Down

0 comments on commit def37d4

Please sign in to comment.