Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

[disabled] state should respect [raised] #127

@icmdaf

Description

@icmdaf

The current default style applies a background color to all disabled buttons.
But according to the material spec, flat disabled buttons don't have a background, just gray text.

Can we split the style and align it closer with the spec (also using the theme colors for disabled text instead of the hardcoded grey value etc)

:host([disabled]:not([raised])) {
  ...
  @apply(--paper-button-disabled);
  @apply(--paper-button-flat-disabled);
}
:host([disabled][raised]) {
  ...
  @apply(--paper-button-disabled);
  @apply(--paper-button-raised-disabled);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions