This repository was archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Button: border radius, there's a better way. #265
Copy link
Copy link
Closed
Description
Firstly I love Attractions. I've selected it for use.
One thing that seems completely wrong to me though is the approach to button radius. The way it works is just counter-intuitive and frankly, unusable.
Problems:
- There's an assumption that's been made; that we want very round buttons as the norm, which is not the case, the norm is currently rectangular with custom radius.
- The way
rectangleprop has been used where it divides the $border-radius var means that if you want square buttons mostly, you can no longer have round buttons. In other words; if you change $border-radius to make square-corner buttons,roundno longer works and you cannot have any round buttons. You really want the flexibility to have both.
Solution:
- Start with $border-radius default being 0
rectangleshould not adjust $border-radius- There should be a
sizerather thansmall, then we have have 5 different sizes: xs, sm, md (default), lg, xl. roundshould adjust border radius, not by a factor but rather by a hard-coded value proportional to thesizeprop, or a calculated value proportional to height, and should always render a completely round button.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels