diff --git a/packages/components/src/dropdown-menu-v2-ariakit/styles.ts b/packages/components/src/dropdown-menu-v2-ariakit/styles.ts index 58e6c535ad20d..1f3cbc7f8710e 100644 --- a/packages/components/src/dropdown-menu-v2-ariakit/styles.ts +++ b/packages/components/src/dropdown-menu-v2-ariakit/styles.ts @@ -149,6 +149,12 @@ const baseItem = css` padding-block: ${ ITEM_PADDING_BLOCK }; padding-inline: ${ ITEM_PADDING_INLINE }; + /* + * Make sure that, when an item is scrolled into view (eg. while using the + * keyboard to move focus), the whole item comes into view + */ + scroll-margin: ${ CONTENT_WRAPPER_PADDING }; + user-select: none; outline: none;