@@ -4,6 +4,15 @@ import * as getNav from '../util/get-nav'
44import usePage from '../hooks/use-page'
55import { LinkNoUnderline } from './link'
66import useLocationChange from '../hooks/use-location-change'
7+ import styled from 'styled-components'
8+
9+ const StyledOverlay = styled ( ActionMenu . Overlay ) `
10+ background-color: var(--bgColor-default, #ffffff) !important;
11+ border-color: var(--borderColor-default, #d0d7de);
12+ border-width: 1px;
13+ border-style: solid;
14+ box-shadow: var(--shadow-resting-medium, 0 3px 6px rgba(140, 149, 159, 0.15));
15+ `
716
817const VariantItem = ( { title, shortName, url, active} ) => (
918 < ActionList . Item as = { LinkNoUnderline } to = { url } state = { { scrollUpdate : false } } id = { shortName } active = { active } >
@@ -38,7 +47,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
3847 < ActionMenu . Button aria-describedby = { labelId } sx = { { width : [ '100%' , null , 'auto' ] } } >
3948 { title }
4049 </ ActionMenu . Button >
41- < ActionMenu . Overlay width = "auto" onEscape = { ( ) => setOpen ( false ) } >
50+ < StyledOverlay width = "auto" onEscape = { ( ) => setOpen ( false ) } >
4251 < ActionList aria-labelledby = { labelId } >
4352 < ActionList . Group >
4453 < ActionList . GroupHeading > Current</ ActionList . GroupHeading >
@@ -53,7 +62,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
5362 ) ) }
5463 </ ActionList . Group >
5564 </ ActionList >
56- </ ActionMenu . Overlay >
65+ </ StyledOverlay >
5766 </ ActionMenu >
5867 </ >
5968 )
0 commit comments