Skip to content

Commit

Permalink
fix(RadioGroup): small layout no longer using grid
Browse files Browse the repository at this point in the history
Grid wasn't playing well with our fixed sizes
  • Loading branch information
benjamincharity committed Aug 6, 2019
1 parent fd6ec43 commit 5193792
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions terminus-ui/radio-group/src/radio-group.component.scss
Original file line number Diff line number Diff line change
@@ -68,10 +68,17 @@

.c-radio--visual {
$radius: 3px;

&.c-radio--small {
.c-radio__control {
float: left;
height: 7rem;
margin-bottom: spacing(small);
width: 13.75rem;

&:not(:last-child) {
margin-right: spacing(small);
}
}
}

@@ -80,11 +87,13 @@
all: unset;
}

// <div> wrapper for all options
.c-radio__options {
display: grid;
grid-gap: spacing(small);
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
&:not(.c-radio--small) {
// <div> wrapper for all options
.c-radio__options {
display: grid;
grid-gap: spacing(small);
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
}
}

// <label> container for a single option

0 comments on commit 5193792

Please sign in to comment.