Skip to content

docs-bug(button): I don't understand how to use most of design tokens #30425

Open
@roma2341

Description

@roma2341

Documentation Feedback

For example i see outlined-hover-state-layer-opacity, what is it, what values does it accept (opacity or color)? i tried to set it and it doesn't change anything. How i should properly style button for :hover ? Now i'm using something like this:

.mdc-button:hover {
  @include mat.button-overrides(
    (
      filled-container-color: var(--colors-main-40),
    )
  );
}

But i don't like that i forced to use class name "mdc-button" that can be changed.
Maybe there are figma or something i can play around with these design tokens because now i blind and everyting is unclear and i think that i hack new tokens system.

Affected documentation page

https://material.angular.io/components/button/styling

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/coredocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions