Add tertiary buttons with background and make them the default #2585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Up till now now the icon only button we've been using almost always had a background "highlight" when hovered. This is fine for most buttons unless they have not enough white-space around them (within an input, a bar). So far the button component didn't offer this option. This pr introduces tertiary buttons with background and makes them default.
So to summarise we'd have:
tertiary
use case: there's enough white-space around the button, so having background feedback is ok. This is what Actions currently haveScreen.Recording.2022-03-29.at.17.56.36.mov
tertiary-no-background
use case: the button has not enough space around it so we rely on opacity to provide the hover feedback.Screen.Recording.2022-03-29.at.18.07.14.mov
docs (how it would actually look):
Screen.Recording.2022-03-29.at.17.50.27.mov
Signed-off-by: marco marcoambrosini@pm.me