Skip to content

Commit

Permalink
fix: checkbox and radio are now inline-flex
Browse files Browse the repository at this point in the history
  • Loading branch information
apust committed Dec 2, 2020
1 parent a9a534a commit 70024f5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/packages/core/src/checkbox/checkbox.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
._e_checkbox {
display: flex;
display: inline-flex;
align-items: flex-start;
cursor: pointer;

Expand All @@ -12,6 +12,13 @@
}
}

/* IE11 only */
@media screen and (-ms-high-contrast: none) {
._e_checkbox {
display: flex;
}
}

._e_checkbox_disabled {
cursor: default;
pointer-events: none;
Expand Down
10 changes: 9 additions & 1 deletion src/packages/core/src/fieldset/fieldset.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
._e_fieldset {
display: block;
display: grid;
justify-items: start;

& > ._e_checkbox, > ._e_radio {
margin-bottom: var(--S12);
Expand All @@ -10,6 +11,13 @@
}
}

/* IE11 only */
@media screen and (-ms-high-contrast: none) {
._e_fieldset {
display: block;
}
}

._e_fieldset__legend {
margin-bottom: var(--S12);
font: var(--Body1);
Expand Down
9 changes: 8 additions & 1 deletion src/packages/core/src/radio/radio.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
._e_radio {
display: flex;
display: inline-flex;
align-items: flex-start;
cursor: pointer;

Expand All @@ -12,6 +12,13 @@
}
}

/* IE11 only */
@media screen and (-ms-high-contrast: none) {
._e_radio {
display: flex;
}
}

._e_radio_disabled {
cursor: default;
pointer-events: none;
Expand Down

0 comments on commit 70024f5

Please sign in to comment.