Skip to content

Commit

Permalink
Fix flexbox logic
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Apr 19, 2023
1 parent e28a73a commit 8d2690c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
as="span"
id={labelId}
sx={{
flexGrow: slots.description?.props.variant !== 'block' ? 0 : 1,
flexGrow: slots.description && slots.description.props.variant !== 'block' ? 0 : 1,
fontWeight: slots.description && slots.description.props.variant !== 'block' ? 'bold' : 'normal',
}}
>
Expand Down

0 comments on commit 8d2690c

Please sign in to comment.