Skip to content

Commit 8fdd1fc

Browse files
committed
fix settings radio button alignment
Signed-off-by: Matt Wrock <matt@mattwrock.com>
1 parent e9e8a84 commit 8fdd1fc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

components/builder-web/app/shared/visibility-selector/_visibility-selector.component.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525

2626
// MDC radio button: .mdc-form-field wraps the radio + label in a flex row
2727
.mdc-form-field {
28-
position: relative;
2928
align-items: flex-start;
3029

3130
.mdc-radio {
32-
position: absolute;
33-
top: 0;
34-
left: 0;
31+
flex-shrink: 0;
32+
// MDC touch target is 40px; visual circle is 20px (10px padding each side).
33+
// Negative margins cancel that padding so the circle aligns with the text.
34+
margin-top: -10px;
35+
margin-left: -10px;
3536
}
3637

3738
.mdc-label {
3839
white-space: normal;
39-
margin-left: $default-margin;
40-
padding-left: $default-padding;
40+
padding-left: 6px;
4141

4242
hab-icon {
4343
margin-left: $small-margin;

0 commit comments

Comments
 (0)