Compare commits
3 commits
24f6741c0c
...
61facdbfb9
Author | SHA1 | Date | |
---|---|---|---|
61facdbfb9 | |||
4dfb800006 | |||
2377d395c3 |
2 changed files with 7 additions and 3 deletions
|
@ -48,6 +48,10 @@ better-select {
|
|||
display: none;
|
||||
}
|
||||
|
||||
&::part(placeholder) {
|
||||
min-height: 1.4em;
|
||||
}
|
||||
|
||||
&.search::part(search) {
|
||||
display: block;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ export class BetterSelect extends HTMLElement {
|
|||
static styleSheet = css`
|
||||
:host {
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
display: inline-block;
|
||||
}
|
||||
* {
|
||||
|
@ -78,6 +77,7 @@ export class BetterSelect extends HTMLElement {
|
|||
position: absolute;
|
||||
flex-flow: column;
|
||||
margin: 0;
|
||||
z-index: var(--layer-dropdown, 100);
|
||||
}
|
||||
[part="drop-down"]:modal {
|
||||
margin: auto;
|
||||
|
@ -134,11 +134,11 @@ export class BetterSelect extends HTMLElement {
|
|||
<div id="display" part="display">
|
||||
<span part="display-text" id="text"></span>
|
||||
<slot name="placeholder" aria-hidden="true">
|
||||
<span id="placeholder" aria-hidden="true"></span>
|
||||
<span part="placeholder" id="placeholder" aria-hidden="true"></span>
|
||||
</slot>
|
||||
</div>
|
||||
<dialog id="dialog" part="drop-down">
|
||||
<input type="search" id="input" part="search" type="text"></input>
|
||||
<input type="search" id="input" part="search" type="search"></input>
|
||||
<ul id="list" part="list"></ul>
|
||||
<slot id="loading" name="loading"></slot>
|
||||
</dialog>
|
||||
|
|
Loading…
Reference in a new issue