Skip to content

Commit

Permalink
style(next): tweak the group header for combo box items
Browse files Browse the repository at this point in the history
  • Loading branch information
adoriandoran committed Jan 14, 2025
1 parent 40b9532 commit cb65591
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/public/stylesheets/theme-next-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--select-focus-text-color: var(--input-text-color);
--select-dropdown-text-color: var(--input-text-color);
--select-arrow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='transparent' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");
--select-group-heading-text-color: gray;

--hover-item-text-color: #efefef;
--hover-item-background-color: #ffffff24;
Expand Down
1 change: 1 addition & 0 deletions src/public/stylesheets/theme-next-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--select-focus-text-color: var(--input-text-color);
--select-dropdown-text-color: var(--input-text-color);
--select-arrow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='transparent' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");
--select-group-heading-text-color: gray;

--hover-item-text-color: black;
--hover-item-background-color: #0000001a;
Expand Down
8 changes: 8 additions & 0 deletions src/public/stylesheets/theme-next/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,12 @@ select:focus, select.form-select:focus {

option {
color: var(--select-dropdown-text-color);
}

optgroup {
color: var(--select-group-heading-text-color);
font-size: .75em;
font-weight: normal;
font-style: normal;
line-height: 40px;
}

0 comments on commit cb65591

Please sign in to comment.