Skip to content

Commit 677db8c

Browse files
crisbetojelbourn
authored andcommitted
fix(radio): underlying label not expanding to width of radio button (#14895)
Fixes the `label` inside a `mat-radio-button` not expanding to the width of the radio button, reducing the clickable area. Fixes #14894.
1 parent bcf2781 commit 677db8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/radio/radio.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ $mat-radio-ripple-radius: 20px;
2626
align-items: center;
2727
white-space: nowrap;
2828
vertical-align: middle;
29+
30+
// Have the label span the rest of the radio button for maximum clickable area.
31+
width: 100%;
2932
}
3033

3134
// Container for radio circles and ripple.

0 commit comments

Comments
 (0)