@@ -4,6 +4,15 @@ import * as getNav from '../util/get-nav'
4
4
import usePage from '../hooks/use-page'
5
5
import { LinkNoUnderline } from './link'
6
6
import 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
+ `
7
16
8
17
const VariantItem = ( { title, shortName, url, active} ) => (
9
18
< ActionList . Item as = { LinkNoUnderline } to = { url } state = { { scrollUpdate : false } } id = { shortName } active = { active } >
@@ -38,7 +47,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
38
47
< ActionMenu . Button aria-describedby = { labelId } sx = { { width : [ '100%' , null , 'auto' ] } } >
39
48
{ title }
40
49
</ ActionMenu . Button >
41
- < ActionMenu . Overlay width = "auto" onEscape = { ( ) => setOpen ( false ) } >
50
+ < StyledOverlay width = "auto" onEscape = { ( ) => setOpen ( false ) } >
42
51
< ActionList aria-labelledby = { labelId } >
43
52
< ActionList . Group >
44
53
< ActionList . GroupHeading > Current</ ActionList . GroupHeading >
@@ -53,7 +62,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
53
62
) ) }
54
63
</ ActionList . Group >
55
64
</ ActionList >
56
- </ ActionMenu . Overlay >
65
+ </ StyledOverlay >
57
66
</ ActionMenu >
58
67
</ >
59
68
)
0 commit comments