Skip to content

Commit

Permalink
correct width of checkboxes with drop down select
Browse files Browse the repository at this point in the history
  • Loading branch information
balibirchlee committed May 21, 2024
1 parent c93148a commit 7493fb7
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 25 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/components/checkboxes/_checkboxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

&__items {
display: block;

@include mq(s) {
max-width: max-content;
}
}

&__item {
Expand All @@ -19,7 +23,9 @@

@include mq(s) {
min-width: 20rem;
width: auto;
:has(select):first-child {
min-width: 25rem;
}

&--no-border {
min-width: 0;
Expand All @@ -31,5 +37,9 @@
@extend .ons-checkboxes__item;

margin-bottom: 0;

@include mq(s) {
max-width: max-content;
}
}
}
6 changes: 0 additions & 6 deletions src/components/radios/_radios.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
.ons-radios {
&__items {
@extend .ons-checkboxes__items;

@include mq(s) {
max-width: max-content;
}
}

&__item {
@extend .ons-checkboxes__item;

width: 100%;

&--no-border {
@extend .ons-checkboxes__item--no-border;

Expand Down

0 comments on commit 7493fb7

Please sign in to comment.