File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
apps/components_guide_web
lib/components_guide_web/templates/layout Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 15
15
--link--color : var (--theme-primary , currentColor);
16
16
--link--decoration : none;
17
17
--link--decoration--hover : initial;
18
+
19
+ --z-menu : 50 ;
18
20
}
19
21
20
22
a : not ([class ]) {
@@ -276,7 +278,7 @@ details[open] summary[aria-haspopup="menu"]:before {
276
278
right : 0 ;
277
279
bottom : 0 ;
278
280
left : 0 ;
279
- z-index : 80 ;
281
+ z-index : calc ( var ( --z-menu ) - 1 ) ;
280
282
display : block;
281
283
cursor : default;
282
284
content : " " ;
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ module.exports = {
13
13
orange : colors . orange ,
14
14
current : 'currentColor' ,
15
15
} ,
16
+ zIndex : {
17
+ 'menu' : 'var(--z-menu)'
18
+ }
16
19
} ,
17
20
} ,
18
21
} ;
Original file line number Diff line number Diff line change 10
10
< hr class = "mx-auto " >
11
11
< details class = "relative " data-links = "block p-3 underline-on-hover " >
12
12
< summary > Quick links</ summary >
13
- < details-menu role = "menu " class = "absolute top-full right-0 flex flex-col text-sm whitespace-nowrap bg-gray-900 rounded shadow-lg " >
13
+ < details-menu role = "menu " class = "absolute z-menu top-full right-0 flex flex-col text-sm whitespace-nowrap bg-gray-900 rounded shadow-lg " >
14
14
<%= link ( "Accessibility First" , to: '/accessibility-first' ) %>
15
15
<%= link ( "React + TypeScript" , to: '/react+typescript' ) %>
16
16
<%= link ( "Web Standards" , to: '/web-standards' ) %>
You can’t perform that action at this time.
0 commit comments