Skip to content

Slide toggle not centered when no text/label #6868

@vegarda

Description

@vegarda

Bug, feature request, or proposal:

Bug/improvement

What is the expected behavior?

Slide toggle to be centered when no text/label

What is the current behavior?

Slide toggle not centered when no text/label

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

.mat-slide-toggle-label{
height: inherit;
}

If no content/text/label:

.mat-slide-toggle-bar{
margin-right: 0;
}

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

beta10

Is there anything else we should know?

Maybe have *ngIf on .mat-slide-toggle-content and margin-left on it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions