MudBlazor/MudBlazor

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

Chiusa

#10.366 aperta il 1 dic 2024

 (1 commento) (0 reazioni) (0 assegnatari)C# (1631 fork)batch import
buggood first issue

Metriche repository

Star
 (10.394 stelle)
Metriche merge PR
 (Merge medio 6g 6h) (108 PR mergiate in 30 g)

Descrizione

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

Guida contributor