Skip to content

Commit 8648616

Browse files
committed
fix(checkbox): center align stacked labels
1 parent b25af78 commit 8648616

11 files changed

+2
-4
lines changed

core/src/components/checkbox/checkbox.common.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
*/
180180
:host(.checkbox-label-placement-stacked) .checkbox-wrapper {
181181
flex-direction: column;
182+
183+
text-align: center;
182184
}
183185

184186
:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper {

core/src/components/checkbox/checkbox.native.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ input {
128128
// Label Placement - Stacked
129129
// ----------------------------------------------------------------
130130

131-
:host(.checkbox-label-placement-stacked) .checkbox-wrapper {
132-
text-align: center;
133-
}
134-
135131
:host(.checkbox-label-placement-stacked) .label-text-wrapper {
136132
@include transform(scale(#{$form-control-label-stacked-scale}));
137133

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)