Skip to content

Conversation

@pdanpdan
Copy link
Contributor

  • keeps the badge aspect 1:1 when empty
  • simplifies the CSS

close #4293

It looks like button, kbd, and tab also have size based on multiples of --size-fiels or --size-selector and paddings based on multiples of 0.25rem.

Should we also convert them to use inline padding based on --size-fiels or --size-selector?

- keeps the badge aspect 1:1 when empty
- simplifies the CSS

close saadeghi#4293
@simoami
Copy link

simoami commented Nov 16, 2025

Should we also convert them to use inline padding based on --size-fiels or --size-selector?

@pdanpdan I think this is a problem with components that have an expected aspect ratio that ends up being broken due to theme size adjustments. I don't think the other components you mentioned have a case where aspect ratio needs to be locked.

@saadeghi saadeghi self-assigned this Nov 18, 2025
@pdanpdan pdanpdan changed the title fib(badge): calculate inline padding based on --size-selector fix(badge): calculate inline padding based on --size-selector Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Empty badges lose their 1:1 ratio when theme --size-selector is modified

3 participants