Skip to content

Commit

Permalink
Make combobox play nicely with its background (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
djfpaagman authored Nov 18, 2024
1 parent 4ad5153 commit 1377a03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/hotwire_combobox.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:root {
--hw-active-bg-color: #F3F4F6;
--hw-border-color: #D1D5DB;
--hw-component-bg-color: #FFFFFF;
--hw-group-color: #57595C;
--hw-group-bg-color: #FFFFFF;
--hw-invalid-color: #EF4444;
Expand Down Expand Up @@ -63,6 +64,7 @@
}

.hw-combobox__main__wrapper {
background-color: var(--hw-component-bg-color);
border: var(--hw-border-width--slim) solid var(--hw-border-color);
border-radius: var(--hw-border-radius);
padding: var(--hw-padding--slim) calc(var(--hw-handle-width) + var(--hw-padding--slimmer)) var(--hw-padding--slim) var(--hw-padding--thick);
Expand Down Expand Up @@ -291,4 +293,8 @@

.hw_combobox__pagination__wrapper {
background-color: var(--hw-option-bg-color);

&:only-child {
background-color: transparent;
}
}

0 comments on commit 1377a03

Please sign in to comment.