Skip to content

Commit 444e213

Browse files
committed
fix(checkbox): align text based on label placement
1 parent 4794ed7 commit 444e213

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/components/checkbox/checkbox.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ input {
278278
*/
279279
:host(.checkbox-label-placement-end) .label-text-wrapper {
280280
@include margin(null, 0, null, $form-control-label-margin);
281+
282+
text-align: end;
281283
}
282284

283285
// Label Placement - Fixed
@@ -312,6 +314,8 @@ input {
312314
*/
313315
:host(.checkbox-label-placement-stacked) .checkbox-wrapper {
314316
flex-direction: column;
317+
318+
text-align: center;
315319
}
316320

317321
:host(.checkbox-label-placement-stacked) .label-text-wrapper {

0 commit comments

Comments
 (0)