Skip to content

Commit

Permalink
More robust selector for detecting drop-down label
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jul 1, 2024
1 parent eb62ce3 commit c900cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ label:has(select) {
&::after {
content: @symbolAngleRight; //character: ❯
position: absolute;
top: 0.1em; //assume no label text above drop-down
right: 0.4em;
bottom: 0.03em;
font-size: 1.5em;
transform: rotate(90deg); //point down
pointer-events: none;
Expand All @@ -159,7 +159,7 @@ label:has(select) {
color: firebrick;
}
}
&:has(select+span)::after { top: 0.1em; bottom: auto; } //label text below drop-down
&:has(span+select)::after { top: auto; bottom: 0.03em; } //label text above drop-down
}

// Fieldsets (unless for checkbox or radio buttons)
Expand Down

0 comments on commit c900cef

Please sign in to comment.