diff --git a/packages/components/src/dropdown-menu-v2-ariakit/index.tsx b/packages/components/src/dropdown-menu-v2-ariakit/index.tsx index b3e0557b441f8..7424b02b4b9f8 100644 --- a/packages/components/src/dropdown-menu-v2-ariakit/index.tsx +++ b/packages/components/src/dropdown-menu-v2-ariakit/index.tsx @@ -95,6 +95,8 @@ export const DropdownMenuCheckboxItem = forwardRef< } + // Override some ariakit inline styles + style={ { width: 'auto', height: 'auto' } } > @@ -140,6 +142,8 @@ export const DropdownMenuRadioItem = forwardRef< } + // Override some ariakit inline styles + style={ { width: 'auto', height: 'auto' } } > diff --git a/packages/components/src/dropdown-menu-v2-ariakit/styles.ts b/packages/components/src/dropdown-menu-v2-ariakit/styles.ts index 1f3cbc7f8710e..f463392eed7a7 100644 --- a/packages/components/src/dropdown-menu-v2-ariakit/styles.ts +++ b/packages/components/src/dropdown-menu-v2-ariakit/styles.ts @@ -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' ] }; /*