Skip to content

Commit 7df08a2

Browse files
committed
refactor(checkbox): add justify & align fix for ionic theme
1 parent 93b734c commit 7df08a2

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

core/src/components/checkbox/checkbox.ionic.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ input {
161161
opacity: 0;
162162
}
163163

164+
// TODO move all justify and alignment styles to the common file
165+
// when it is created
166+
164167
// Justify Content
165168
// ---------------------------------------------
166169

@@ -187,6 +190,20 @@ input {
187190
align-items: center;
188191
}
189192

193+
// Justify Content & Align Items
194+
// ---------------------------------------------
195+
196+
// The checkbox should be displayed as block when either justify
197+
// or alignment is set; otherwise, these properties will have no
198+
// visible effect.
199+
:host(.checkbox-justify-space-between),
200+
:host(.checkbox-justify-start),
201+
:host(.checkbox-justify-end),
202+
:host(.checkbox-alignment-start),
203+
:host(.checkbox-alignment-center) {
204+
display: block;
205+
}
206+
190207
// Label Placement - Start
191208
// ----------------------------------------------------------------
192209

core/src/components/toggle/toggle.native.scss

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,6 @@
2828
overflow: hidden;
2929
}
3030

31-
// Toggle Justify
32-
// --------------------------------------------------
33-
34-
:host(.toggle-justify-space-between) .toggle-wrapper {
35-
justify-content: space-between;
36-
}
37-
38-
:host(.toggle-justify-start) .toggle-wrapper {
39-
justify-content: start;
40-
}
41-
42-
:host(.toggle-justify-end) .toggle-wrapper {
43-
justify-content: end;
44-
}
45-
46-
// Toggle Align
47-
// --------------------------------------------------
48-
49-
:host(.toggle-alignment-start) .toggle-wrapper {
50-
align-items: start;
51-
}
52-
53-
:host(.toggle-alignment-center) .toggle-wrapper {
54-
align-items: center;
55-
}
56-
5731
// Input Label Placement - Fixed
5832
// ----------------------------------------------------------------
5933

0 commit comments

Comments
 (0)