Skip to content

Commit bbd96e8

Browse files
devversionjelbourn
authored andcommitted
fix(slide-toggle): apply typography styles to slide-toggle (#634)
* The slide-toggle didn't apply any typography styles to the content element Now it applies the configurable typography variables. Fixes #633.
1 parent 7419a12 commit bbd96e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/slide-toggle/slide-toggle.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@ $md-slide-toggle-margin: 16px !default;
8686
}
8787
}
8888

89-
// The label is our root container for the slide-toggle / switch indicator and label text.
89+
// The content element is responsible for the users content.
90+
// It will apply the given typography styles and align at the end of the slide-toggle.
91+
.md-slide-toggle-content {
92+
font-size: $md-body-font-size-base;
93+
font-family: $md-font-family;
94+
font-weight: 500;
95+
}
96+
97+
// The label element is our root container for the slide-toggle / switch indicator and label text.
9098
// It has to be a label, to support accessibility for the visual hidden input.
9199
.md-slide-toggle-label {
92100
display: flex;

0 commit comments

Comments
 (0)