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

website: Change code sample box #1166

Closed
wants to merge 1 commit into from

Conversation

FlyersPh9
Copy link
Collaborator

@FlyersPh9 FlyersPh9 commented Mar 28, 2023

Changes

While working on #961 some pages have many demos. With the current implementation the code samples take up a good amount of vertical space even when collapsed. The idea behind this was to reduce the vertical space used when collapsed, reduce the visual noise when collapsed (the code samples, because they're colorful, draw my attention).

  • Use <details> to show / hide the code snippet under demos on the documentation website.
  • Styled the copy button to match the Open in Codesandbox button directly above it.

Testing

N/A

Docs

N/A

@FlyersPh9 FlyersPh9 closed this Mar 30, 2023
@FlyersPh9 FlyersPh9 mentioned this pull request Mar 30, 2023
21 tasks
@mayank99 mayank99 deleted the jon/website-code-sample-change branch May 9, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant