Skip to content

Commit

Permalink
correct width of checkboxes with drop down select (#3212)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Venturini <112873190+alessioventuriniAND@users.noreply.github.com>
Co-authored-by: Precious Onyenaucheya <86783201+precious-onyenaucheya-ons@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 3, 2024
1 parent 1f64c45 commit a04b235
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 a04b235

Please sign in to comment.