Skip to content

Commit 767811f

Browse files
authored
fix(theme-selector): prevent overflow of the menu (#4779)
1 parent 2294679 commit 767811f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/documentation-framework/components/themeSelector/themeSelector.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ export const ThemeSelector = ({ id }) => {
103103
)}
104104
shouldFocusToggleOnSelect
105105
onOpenChangeKeys={['Escape']}
106+
popperProps={{
107+
position: 'right',
108+
enableFlip: true,
109+
preventOverflow: true
110+
}}
106111
>
107112
<SelectGroup>
108113
<SelectList aria-label="Light/Dark theme switcher">

0 commit comments

Comments
 (0)