Skip to content

Commit 9c8510c

Browse files
palbizuPatricio Albizu
andauthored
fix: toggleButtonRestyling (#645)
* fix: defenseAISettingsMockAlignment * fix: toggleButtonRestyling Co-authored-by: Patricio Albizu <albizupatricio@github.com>
1 parent cfc4509 commit 9c8510c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

projects/components/src/toggle-switch/toggle-switch.component.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33

44
:host {
55
::ng-deep {
6+
.mat-slide-toggle {
7+
height: 20px;
8+
line-height: 20px;
9+
}
10+
611
.mat-checked {
712
.mat-slide-toggle-thumb-container {
13+
transform: translate3d(7px, 0, 0) !important;
814
margin-left: 1px;
915
}
1016

@@ -19,14 +25,27 @@
1925

2026
.mat-slide-toggle-thumb-container {
2127
margin-left: -1px;
28+
width: 12px;
29+
height: 12px;
30+
31+
.mat-slide-toggle-ripple {
32+
top: calc(50% - 7px);
33+
left: calc(50% - 7px);
34+
height: 20px;
35+
width: 20px;
36+
}
2237
}
2338

2439
.mat-slide-toggle-thumb {
2540
background-color: $gray-2;
41+
height: 12px;
42+
width: 12px;
2643
}
2744

2845
.mat-slide-toggle-bar {
2946
background-color: $gray-5;
47+
width: 18px;
48+
height: 6px;
3049
}
3150
}
3251
}

0 commit comments

Comments
 (0)