-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slide-toogle] Font size is different from others components (eg : checkbox) #10552
Comments
I'd like to correct this. I do agree that differing sizes of form elements text can be obtrusive when not used properly. It appears in the spec that the font is the same, so I'd say this is a bug: https://material.io/guidelines/components/selection-controls.html#selection-controls-radio-button |
After doing some research, it appears that the slider-toggle component makes it's text content follow the Opinions? https://github.com/angular/material2/blob/master/src/lib/core/typography/_typography.scss#L33 My guess is that it's supposed to also use the @mixin mat-slide-toggle-typography($config) {
.mat-slide-toggle-content {
@include mat-typography-level-to-styles($config, body-1);
}
} |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Slide-toggle label as the same font size of a checkbox label
What is the current behavior?
Slide-toggle label as a specific font size
What are the steps to reproduce?
https://stackblitz.com/edit/angular-yllug9
What is the use-case or motivation for changing an existing behavior?
Labels of differents sizes are not pretty, especially when you have a mix of checkbox and slide-toggle next to each other...
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
See SB
The text was updated successfully, but these errors were encountered: