Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix border-radius on radio-switch #38884

Merged
2 changes: 1 addition & 1 deletion scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
margin-left: $form-switch-padding-start * -1;
background-image: var(--#{$prefix}form-switch-bg);
background-position: left center;
@include border-radius($form-switch-border-radius);
@include border-radius($form-switch-border-radius, 0);
@include transition($form-switch-transition);

&:focus {
Expand Down
16 changes: 16 additions & 0 deletions site/content/docs/5.3/forms/checks-radios.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ A switch has the markup of a custom checkbox but uses the `.form-switch` class t
</div>
{{< /example >}}

{{< example >}}
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
<div class="form-check form-switch">
<input class="form-check-input" type="radio" name="flexRadioDefault1" id="flexRadioDefault3">
<label class="form-check-label" for="flexRadioDefault3">
Radio switch
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="radio" name="flexRadioDefault1" id="flexRadioDefault4" checked>
<label class="form-check-label" for="flexRadioDefault4">
Checked radio switch
</label>
</div>
{{< /example >}}


## Default (stacked)

By default, any number of checkboxes and radios that are immediate sibling will be vertically stacked and appropriately spaced with `.form-check`.
Expand Down