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

[docs-infra] Improve show code button affordance #38824

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

danilo-leal
Copy link
Contributor

@danilo-leal danilo-leal commented Sep 5, 2023

Closes #38722

This PR is another iteration of improving the affordance of the "Show code" buttons on the demo's toolbar. The above-linked issue came from a community contributor saying how the recent change from the <> icon button to the gray labeled button made it confusing to understand that it was clickable. Here, we're adding a slight border and also turning the label blue to really indicate that's an action visitors can take. Hopefully, this will kick the amount of events this action was triggering back up and improve the UX.

Examples below:

@danilo-leal danilo-leal added design This is about UI or UX design, please involve a designer scope: docs-infra Specific to the docs-infra product labels Sep 5, 2023
@danilo-leal danilo-leal self-assigned this Sep 5, 2023
@mui-bot
Copy link

mui-bot commented Sep 5, 2023

Netlify deploy preview

https://deploy-preview-38824--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 0e4c253

@danilo-leal danilo-leal marked this pull request as ready for review September 6, 2023 17:32
@danilo-leal
Copy link
Contributor Author

@trungutt I'd appreciate you chiming in here and sharing what you think about this change! :)

@trungutt
Copy link

Thanks for involving me in the preview. It does look a lot better, with the outlined and color changes. Really appreciate it 👍

Screen.Recording.2023-09-11.at.14.05.56.mov

Copy link
Contributor

@zanivan zanivan left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@danilo-leal danilo-leal merged commit f22e995 into mui:master Sep 11, 2023
7 checks passed
@danilo-leal danilo-leal deleted the show-code-button-affordance branch September 11, 2023 15:59
@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 11, 2023

Nice, love the consistency look with the TS/JS button.

xcode-it pushed a commit to xcode-it/material-ui that referenced this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design This is about UI or UX design, please involve a designer scope: docs-infra Specific to the docs-infra product
Projects
Status: Recently completed
Development

Successfully merging this pull request may close these issues.

[docs-infra] Improve the "Show code" button affordance
5 participants