Skip to content

Commit adb6b06

Browse files
committed
refactor(form): simplified toggle icon styles
1 parent b278230 commit adb6b06

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/form/src/toggle/_mixins.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
////
44

55
@import '~@react-md/button/dist/mixins';
6+
@import '~@react-md/icon/dist/mixins';
67
@import '~@react-md/progress/dist/mixins';
78
@import '~@react-md/states/dist/mixins';
89
@import '~@react-md/theme/dist/mixins';
@@ -101,16 +102,9 @@
101102
@mixin rmd-toggle-icon {
102103
@include rmd-icon-theme(height, size);
103104
@include rmd-icon-theme(width, size);
104-
105-
.rmd-icon {
106-
color: inherit;
107-
fill: currentColor;
108-
height: inherit;
109-
width: inherit;
110-
}
105+
@include rmd-icon-theme-update-var(color, $rmd-toggle-inactive-color);
111106

112107
align-items: center;
113-
color: $rmd-toggle-inactive-color;
114108
display: inline-flex;
115109
justify-content: center;
116110
pointer-events: none;

0 commit comments

Comments
 (0)