Skip to content

[MatButtonToggleGroup] cannot unset elevation #10934

Closed
@merlosy

Description

@merlosy

Bug, feature request, or proposal:

The class "mat-elevation-z0" doesn't change elevation style

What is the expected behavior?

I should be able to unset the elevation with the class "mat-elevation-z0"

What is the current behavior?

It does nothing

What are the steps to reproduce?

StackBlitz: https://stackblitz.com/edit/angular-pqeknw?file=app%2Fbutton-toggle-exclusive-example.html

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

It seems to be the proper to unset it.

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

Angular: 5
Angular Material: 5
Windows 8.1

Is there anything else we should know?

CSS rules seem to be in the wrong order.
Also, I believe the text (options) is a bit too bright, and the is not recommendation for toggle buttons with text on https://material.io/guidelines/components/buttons.html#buttons-toggle-buttons

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/button-toggle

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions