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

Button guidance PR #4409

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/button/images/button-style-ghost.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/button/images/button-style-primary.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/button/images/button-style-secondary.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/button/images/button-style-sizes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/components/button/images/button-style-tertiary.png
100755 → 100644
Diff not rendered.
Binary file modified src/pages/components/button/images/button_usage_10.png
Binary file modified src/pages/components/button/images/button_usage_11.png
Binary file modified src/pages/components/button/images/button_usage_12.png
Binary file modified src/pages/components/button/images/button_usage_13.png
Binary file modified src/pages/components/button/images/button_usage_14.png
Binary file modified src/pages/components/button/images/button_usage_15.png
Diff not rendered.
Binary file modified src/pages/components/button/images/button_usage_2.png
Binary file modified src/pages/components/button/images/button_usage_26.png
Binary file modified src/pages/components/button/images/button_usage_27.png
Binary file modified src/pages/components/button/images/button_usage_3.png
Diff not rendered.
Diff not rendered.
Binary file modified src/pages/components/button/images/button_usage_5.png
Binary file modified src/pages/components/button/images/button_usage_6.png
Diff not rendered.
Binary file modified src/pages/components/button/images/button_usage_8.png
Diff not rendered.
Binary file modified src/pages/components/button/images/button_usage_9.png
Diff not rendered.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overlay of this button looks off. Maybe try it with the multiply effect.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While creating this image, I was referring to the Menu buttons image where Thy has used a Magenta 30 overlay.

Referring to AI label and Tag, it uses Magenta 20 as an underlay and overlay respectively.
I won't be able to use an underlay for button, so doing an overlay with Magenta 20 (L-new) vs 30 (R-as is) for comparison, any preference? Magenta 20 looks better IMO!

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, multiply doesn’t seem to be working in this situation since the button blue is much higher contrast than our usual components where we overlay this color. I was unable to find your actual image in your file and I could not replicate an "Overlay" blend mode at Magenta 20 to get the result you are showing. But Magenta 30, @80% looks pretty similar to it.

In the production guidelines for dark themes in these highlight situations, Jeannie specified using opacity instead of multiply. Maybe we could use an opacity here and just use a lighter or darker magenta step color?

Here are some options below, if you go anywhere lighter or darker than these either in opacity or color step it starts to get weird.


Frame 1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most accessible among these options (from a color contrast perspective) is the last option which is Magenta 40 at 60% opacity. Shall I proceed with that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a tertiary button here instead of a primary? That might help with clarity. But I do like the Magenta 40 @60% that works fine IMO. Could maybe also add a border? Either way I think you can just pick an option @alina-jacob and we can be done with this one. Its an odd ball.
image

Copy link
Member Author

@alina-jacob alina-jacob Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tertiary button idea is great, so I can do that!
I'll refer the AI label for specs.


image

Thanks guys!

591 changes: 431 additions & 160 deletions src/pages/components/button/style.mdx

Large diffs are not rendered by default.

1,008 changes: 853 additions & 155 deletions src/pages/components/button/usage.mdx

Large diffs are not rendered by default.

Loading