Skip to content

Commit

Permalink
Added max-width to multi-select-button
Browse files Browse the repository at this point in the history
Because of its usage this element can get quite long the more options are added. This PR replaces the max-width(100%) from GOVUK and changes to 12.5em
  • Loading branch information
lucascumsille authored and dracos committed Dec 19, 2024
1 parent 5ee915d commit b252d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web/cobrands/sass/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,6 @@
}

.dashboard-filters {
.multi-select-button {
max-width: 10em;
}

.form-control {
// To make them have the same height as the .multi-select-button
height: 3.3em;
Expand Down
2 changes: 2 additions & 0 deletions web/cobrands/sass/_multiselect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
position: relative;
white-space: nowrap;
line-height: 1.5rem;
// .govuk-select has a max-width of 100%, this makes the multi-select-button to get wider and wider the more options the users clicks.
max-width: 12.5em !important;
}

.multi-select-container--open {
Expand Down

0 comments on commit b252d94

Please sign in to comment.