diff --git a/src/components/ChoiceSelect/ChoiceSelect.css b/src/components/ChoiceSelect/ChoiceSelect.css index 64de880..31b9920 100644 --- a/src/components/ChoiceSelect/ChoiceSelect.css +++ b/src/components/ChoiceSelect/ChoiceSelect.css @@ -1,24 +1,54 @@ -/* ChoiceSelect.css */ +/* ------ root ------ */ + .choice-select { + width: 100%; + height: 100%; + min-width: 0; + min-height: 0; + flex: 1 1 auto; + position: relative; display: flex; - - container-type: size; - height: var(--card-control-height); + align-items: stretch; - color: var(--accent-brand); + box-sizing: border-box; + border: var(--border-width) solid var(--border-hairline); + border-radius: var(--radius-sm); + background: transparent; } .choice-select[data-disabled] { opacity: 0.5; } +/* ------ label ------ */ + +.choice-select__label { + flex: 1 1 auto; + min-width: 0; + width: 100%; + + font-family: var(--font-mono); + font-size: var(--font--sm); + font-weight: var(--font-weight-normal); + text-align: left; + + background: transparent; + border: none; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* ------ trigger ------ */ + .choice-select__trigger { - /* Keep the existing outer dimensions and border */ flex: 1 1 auto; width: 100%; height: 100%; min-width: 0; + min-height: 0; display: flex; align-items: center; @@ -28,6 +58,7 @@ padding-left: 5%; padding-right: 1%; + box-sizing: border-box; background: transparent; border: var(--border-width) solid var(--border-hairline); border-radius: var(--radius-sm); @@ -49,16 +80,6 @@ cursor: not-allowed; } -.choice-select__label { - flex: 1 1 auto; - min-width: 0; - - text-align: left; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - .choice-select__chevron { flex: 0 0 auto; align-self: stretch; @@ -81,29 +102,11 @@ .choice-select__chevron svg { display: block; width: auto; - height: 100%; + height: 85%; max-width: none; } -.choice-select__option { - padding: 1%; - border-radius: var(--radius-sm); - font-size: 100%; - color: var(--text-primary); - cursor: pointer; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.choice-select__option--highlight { - background: var(--bg-raised); -} - -.choice-select__option--selected { - color: var(--accent-brand); - font-weight: var(--font-weight-semibold); -} +/* ------ listbox ------ */ .choice-select__listbox { position: absolute; @@ -133,5 +136,27 @@ .choice-select__listbox--portal { position: fixed; - z-index: 1000; /* clear of any local stacking contexts in the panel */ + z-index: 1000; +} + +/* ------ listbox options ------ */ + +.choice-select__option { + padding: 1%; + border-radius: var(--radius-sm); + font-size: 100%; + color: var(--text-primary); + cursor: pointer; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.choice-select__option--highlight { + background: var(--bg-raised); +} + +.choice-select__option--selected { + color: var(--accent-brand); + font-weight: var(--font-weight-semibold); } diff --git a/src/pages/AddDspPage/AddDspPage.css b/src/pages/AddDspPage/AddDspPage.css index 4597e82..ebce3ad 100644 --- a/src/pages/AddDspPage/AddDspPage.css +++ b/src/pages/AddDspPage/AddDspPage.css @@ -187,10 +187,6 @@ color: var(--border-hairline); } -.choice-stepper__input:disabled { - cursor: not-allowed; -} - /* ---------- Phone / touch ---------- */ @media (pointer: coarse) {