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.
-
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
,secondary
andtertiary
naming more meaningful, regardless of their colors. The example above uses ourcontained
buttons asprimary
, ouroutline
assecondary
and ourtext
astertiary
.In contrast, the hierarchy of our current
primary
andsecondary
buttons is directly -and only- related to their colors.outline
andtext
versions 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
tertiary
button because difference betweensecondary
andtertiary
buttons was only the color and the -default- colors were very close to each other.But we also needed a button lower than
secondary
in the hierarchy in multiple cases.Now I want to offer to re-considering our button variant naming. I feel like using
outline
assecondary
variant andtext
as thetertiary
variant 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
kind
to 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
,secondary
andtertiary
variants as the replacement of currentcontained
,outline
andtext
kinds and using kind parameter to them with their colors likeprimary
color =default
,secondary
color =neutral
,success
anddanger
. In this case we may also need to rename ourprimary
andsecondary
colors.primary
secondary
tertiary
default
neutral
success
danger
What do you think?
@buseselvi @leventozen @DamlaDemir
Beta Was this translation helpful? Give feedback.
All reactions