File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ onDestroy(() => {
85
85
{/if }
86
86
</div >
87
87
{#if item .dismissable }
88
- <div class ="_toastBtn pe" role ="button" tabindex ="-1" on:click ={close }>✕</ div >
88
+ <div class ="_toastBtn pe" role ="button" tabindex ="-1" on:click ={close } / >
89
89
{/if }
90
90
<progress class ="_toastBar" value ={$progress } />
91
91
</div >
@@ -123,15 +123,18 @@ onDestroy(() => {
123
123
pointer-events : auto ;
124
124
}
125
125
._toastBtn {
126
- width : 2rem ;
127
- height : 100% ;
128
- font : 1rem sans-serif ;
126
+ width : var ( --toastBtnWidth , 2rem ) ;
127
+ height : var ( --toastBtnHeight , 100% ) ;
128
+ font : var ( --toastBtnFont , 1rem sans-serif ) ;
129
129
display : flex ;
130
130
align-items : center ;
131
131
justify-content : center ;
132
132
cursor : pointer ;
133
133
outline : none ;
134
134
}
135
+ ._toastBtn ::after {
136
+ content : var (--toastBtnContent , ' ✕' );
137
+ }
135
138
._toastBar {
136
139
top : var (--toastBarTop , auto );
137
140
right : var (--toastBarRight , auto );
You can’t perform that action at this time.
0 commit comments