Skip to content

Commit

Permalink
Use inline styles instead of !important
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Nov 23, 2023
1 parent d7fe484 commit d8e6465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/dropdown-menu-v2-ariakit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export const DropdownMenuCheckboxItem = forwardRef<
<Ariakit.MenuItemCheck
store={ dropdownMenuContext?.store }
render={ <Styled.ItemPrefixWrapper /> }
// Override some ariakit inline styles
style={ { width: 'auto', height: 'auto' } }
>
<Icon icon={ check } size={ 24 } />
</Ariakit.MenuItemCheck>
Expand Down Expand Up @@ -140,6 +142,8 @@ export const DropdownMenuRadioItem = forwardRef<
<Ariakit.MenuItemCheck
store={ dropdownMenuContext?.store }
render={ <Styled.ItemPrefixWrapper /> }
// Override some ariakit inline styles
style={ { width: 'auto', height: 'auto' } }
>
<Icon icon={ radioCheck } size={ 24 } />
</Ariakit.MenuItemCheck>
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/dropdown-menu-v2-ariakit/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ export const ItemPrefixWrapper = styled.span`
align-items: center;
justify-content: center;
/* Override inline styles applied by ariakit */
width: auto !important;
height: auto !important;
color: ${ COLORS.gray[ '700' ] };
/*
Expand Down

0 comments on commit d8e6465

Please sign in to comment.