Skip to content

[MatButtonToggleGroup] cannot unset elevation #10934

Closed

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

Activity

  1. crisbeto commented on Apr 20, 2018

    @crisbeto
    Member

    Should be possible once #7909 gets in.

  2. added
    P5
    on Nov 29, 2018
  3. crisbeto commented on Jun 27, 2022

    @crisbeto
    Member

    Should've been resolved some time ago by #14722.

  4. angular-automatic-lock-bot commented on Jul 28, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P5area: material/button-toggle

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions