MudBlazor/MudBlazor

MudIconButton: Padding changes 1px when changing from Outlined to Filled

クローズ

#10,366 opened on 2024/12/01

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,631 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (10,394 個のスター)
PR merge metrics
 (平均マージ 6d 6h) (30d で 108 merged PRs)

説明

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudIconButton

What happened?

When MudIconButton changes from Outlined variant to Filled variant, padding is changed from 4 to 5 creating a visual glitch.

msedge_NborcA6hki

CSS being changed/applied:

.mud-button-outlined-size-small.mud-icon-button { padding: 4px; }

.mud-button-filled-size-small.mud-icon-button { padding: 5px; }

Expected behavior

Keep the padding consistent.

Reproduction link

https://try.mudblazor.com/snippet/cuGoPQOlevPYhVzd

Reproduction steps

See try mudblazor example.

Relevant log output

No response

Version (bug)

7.15.0

Version (working)

No response

What browsers are you seeing the problem on?

Edge

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

コントリビューターガイド