Skip to content

Commit 9711f44

Browse files
committed
cleanup
1 parent f2403c7 commit 9711f44

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/v2/components/combobox/Combobox.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ export class Combobox extends LitElement {
6363
:host { // default theme
6464
display: inline-block;
6565
position: relative;
66-
z-index: var(--combobox-z-index, 400);
6766
box-sizing: border-box;
68-
--combobox-open-z-index: 1000;
69-
--combobox-popup-z-index: 1001;
7067
--popup-background: var(--color-background, #F8F9FB);
7168
--popup-text: var(--color-text, #1A1A1A);
7269
--popup-border: var(--color-border, #E5E7EB);
@@ -81,10 +78,7 @@ export class Combobox extends LitElement {
8178
:host([theme='dark']) {
8279
display: inline-block;
8380
position: relative;
84-
z-index: var(--combobox-z-index, 900);
8581
box-sizing: border-box;
86-
--combobox-open-z-index: 1000;
87-
--combobox-popup-z-index: 1001;
8882
--popup-background: var(--color-background, #F8F9FB);
8983
--popup-text: var(--color-text, #1A1A1A);
9084
--popup-border: var(--color-border, #E5E7EB);
@@ -96,10 +90,6 @@ export class Combobox extends LitElement {
9690
--placeholder-color: var(--grey-purple-700, #5e546d);
9791
}
9892
99-
:host([popup-open]) {
100-
z-index: var(--combobox-open-z-index);
101-
}
102-
10393
.popup-box {
10494
position: absolute;
10595
top: 0;
@@ -114,7 +104,6 @@ export class Combobox extends LitElement {
114104
overflow: hidden;
115105
box-sizing: border-box;
116106
isolation: isolate;
117-
z-index: var(--combobox-popup-z-index);
118107
}
119108
120109
.select-options-section {
@@ -316,8 +305,6 @@ export class Combobox extends LitElement {
316305
}
317306

318307
protected updated (changedProperties: Map<string, unknown>) {
319-
this.toggleAttribute('popup-open', this._popupOpen)
320-
321308
if (this._popupOpen) {
322309
this._updatePopupPosition()
323310
if (this._popupPortalRoot) {

src/v2/components/combobox/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ These can be set on `solid-ui-combobox`, on a container element, or on `:root`.
127127
128128
| Variable | Fallback | Description |
129129
|----------|----------|-------------|
130-
| `--combobox-z-index` | `400` / `900` in dark theme | Base host stacking level before the popup opens. |
131-
| `--combobox-open-z-index` | `1000` | Host stacking level while the popup is open. |
132-
| `--combobox-popup-z-index` | `1001` | Popup stacking level inside the open host or portal. |
133130
| `--popup-background` | `--color-background` | Popup surface background. |
134131
| `--popup-text` | `--color-text` | Popup text colour. |
135132
| `--popup-border` | `--color-border` / `#E5E7EB` | Popup border colour. |

0 commit comments

Comments
 (0)