Proposal: Reconsidering button variants #216
Replies: 7 comments 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
This seems like more practical than what we've currently. Honestly only thing that bothers me naming |
Beta Was this translation helpful? Give feedback.
-
|
This idea is better and clearer for variant usage. Actually, we discussed with @leventozen before about using the variant when trying to find a new prop name I think, maybe we can use |
Beta Was this translation helpful? Give feedback.
-
|
Very good perspective. I agree with what you pointed out. However, I think we only need to replace Therefore, when we need to specify its <bl-button kind="secondary">secondary</bl-button>It is a secondary action, means UX decided this action is <bl-button kind="primary" variant="danger">primary</bl-button>It should make the user think that it is the primary action for this but with the danger variant, should think that it may cause some irreversible changes, let's say. |
Beta Was this translation helpful? Give feedback.
-
|
As the UX team we agree that it would be better to update the buttons as @muratcorlu suggested, it would be more safe to determine the usage areas of the buttons according to the style rather than the color. Maybe we can call it |
Beta Was this translation helpful? Give feedback.
-
|
As always, naming things is one of the biggest challenges of our work 😊 Let me sum-up da suggestions for the button styles:
Let's give a few more days for more ideas. In the meantime I'll have a look to more component libraries as examples and check dictionaries to understand the differences of the meaning of those words 😊 |
Beta Was this translation helpful? Give feedback.
-
|
Just for noting down here, we implemented those changes with #250 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, while reading an article, drawing below attracted my attention about how they style button variants:
I noticed that how general style of the buttons here expresses their hierarchy and makes their
primary,secondaryandtertiarynaming more meaningful, regardless of their colors. The example above uses ourcontainedbuttons asprimary, ouroutlineassecondaryand ourtextastertiary.In contrast, the hierarchy of our current
primaryandsecondarybuttons is directly -and only- related to their colors.outlineandtextversions of the buttons doesn't mean a hierarchy in our buttons as opposed to their styles.I feel that, this creates some confussion especially when we discuss over our color palette. A few months ago, we decided to remove
tertiarybutton because difference betweensecondaryandtertiarybuttons was only the color and the -default- colors were very close to each other.But we also needed a button lower than
secondaryin the hierarchy in multiple cases.Now I want to offer to re-considering our button variant naming. I feel like using
outlineassecondaryvariant andtextas thetertiaryvariant makes more sense, easier to explain and easier to use.With those variants, it's very obvious to see the hierarchy between the buttons regardless of their colors.
Then maybe we can use colors as
kindto give button to a thematic value. like<bl-button variant="secondary" kind="success">Success</bl-button>can be:To conclude, I think there is a big value to use
primary,secondaryandtertiaryvariants as the replacement of currentcontained,outlineandtextkinds and using kind parameter to them with their colors likeprimarycolor =default,secondarycolor =neutral,successanddanger. In this case we may also need to rename ourprimaryandsecondarycolors.primarysecondarytertiarydefaultneutralsuccessdangerWhat do you think?
@buseselvi @leventozen @DamlaDemir
Beta Was this translation helpful? Give feedback.
All reactions