Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tertiary buttons with background and make them the default #2585

Merged

Conversation

marcoambrosini
Copy link
Contributor

@marcoambrosini marcoambrosini commented Mar 29, 2022

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:

  • Default tertiary use case: there's enough white-space around the button, so having background feedback is ok. This is what Actions currently have
Screen.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

@marcoambrosini marcoambrosini added the 3. to review Waiting for reviews label Mar 29, 2022
@marcoambrosini marcoambrosini requested a review from a team March 29, 2022 16:08
@marcoambrosini marcoambrosini self-assigned this Mar 29, 2022
@marcoambrosini marcoambrosini force-pushed the feature/noid/tertiary-buttons-default-hover-feedback branch from 008a9fc to 53185a5 Compare March 31, 2022 10:03
Signed-off-by: marco <marcoambrosini@pm.me>
@marcoambrosini marcoambrosini force-pushed the feature/noid/tertiary-buttons-default-hover-feedback branch from 53185a5 to f67de01 Compare March 31, 2022 10:11
@marcoambrosini marcoambrosini merged commit 525f6aa into master Mar 31, 2022
@marcoambrosini marcoambrosini deleted the feature/noid/tertiary-buttons-default-hover-feedback branch March 31, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants