File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
apps/svelte.dev/src/lib/components Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 77
77
>
78
78
<summary class ="raised icon" aria-label ={label }><Icon name =" menu" /></summary >
79
79
80
- <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions (handled by <svelte:window>) -->
81
- <div class ="modal-background" onclick ={() => (open = false )}></div >
82
-
83
80
<div class =" contents" use:trap >
84
81
{@render children ()}
85
82
</div >
100
97
}
101
98
102
99
summary {
100
+ position : absolute ;
103
101
display : flex ;
104
102
align-items : center ;
105
103
justify-content : center ;
106
104
user-select : none ;
107
105
}
108
106
109
- .modal-background {
107
+ details [open ] summary ::before {
108
+ content : ' ' ;
110
109
position : fixed ;
111
110
left : 0 ;
112
111
top : 0 ;
120
119
.contents {
121
120
position : absolute ;
122
121
z-index : 9999 ;
123
- background : white ;
122
+ background : var ( --sk-bg-2 ) ;
124
123
padding : 1rem ;
125
124
border-radius : var (--sk-border-radius );
126
125
filter : var (--sk-shadow );
133
132
color : var (--sk-fg-3 );
134
133
line-height : 1 ;
135
134
background-size : 1.8rem ;
136
- z-index : 999 ;
135
+ z-index : 9999 ;
137
136
}
138
137
139
138
.icon :hover ,
You can’t perform that action at this time.
0 commit comments