Skip to content

Commit 11e1fba

Browse files
committed
fix active in simple selectors (opacity)
1 parent 28113a7 commit 11e1fba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/simple-selector.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ export default class SimpleSelectorComponent extends StylableElement {
9999
select {
100100
text-align: center;
101101
}
102-
section:not(:has(.asm-simple-selector__active:checked)):not(:has(.asm-simple-selector__selector)) {
103-
opacity: 0.5;
104-
}
105102
input, select, button {
106103
font-family: inherit;
107104
font-size: inherit;
@@ -142,6 +139,10 @@ export default class SimpleSelectorComponent extends StylableElement {
142139
cursor: text;
143140
}
144141
}
142+
/* FIXME: this should be inside :host but it breaks opactity when visible */
143+
section:not(:has(.asm-simple-selector__active:checked)):not(:has(.asm-simple-selector__selector)) {
144+
opacity: 0.5;
145+
}
145146
`
146147

147148
override focus() {

0 commit comments

Comments
 (0)