Skip to content

docs-bug(button): Change icon button size missing #30448

Open
@perotom

Description

@perotom

Documentation Feedback

There is only an example to change some colours of a button (https://material.angular.io/components/button/styling) but no example of changing the size.
Especially for icon buttons, different sizes are often needed. Right now we are using something like that:

.mdc-icon-button.small {
  line-height: 18px;
  .mat-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
}

which is probably not the preferred way. I also tried it with:

.small {
  @include mat.icon-button-overrides((
    icon-size: 18px
  ));
}

which doesn't work as expected.

Image

Affected documentation page

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/buttonarea: material/icondocsThis issue is related to documentationneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions