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

Expand/collapse codeboxes #1776

Closed
ryancreatescopy opened this issue Nov 11, 2020 · 1 comment
Closed

Expand/collapse codeboxes #1776

ryancreatescopy opened this issue Nov 11, 2020 · 1 comment
Assignees
Labels
feature ✨ This is enhancing something existing or creating something new help wanted Extra attention is needed or someone is needed to help

Comments

@ryancreatescopy
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Our codebox component can make our docs pages a little cumbersome, especially when we show an entire contract or a lot of code. We should introduce the ability to expand/collapse the codebox.

Describe the solution you'd like

The codebox should be collapsed by default. But the collapsed state should show a few lines of the code.

While adding the button to show/hide code, we should revisit the button design. The primary purple color can be a little harsh on the codebox background.

See problem below

Screenshot 2020-11-11 at 12 15 05

image

@ryancreatescopy ryancreatescopy added feature ✨ This is enhancing something existing or creating something new help wanted Extra attention is needed or someone is needed to help labels Nov 11, 2020
@wackerow
Copy link
Member

wackerow commented Dec 6, 2020

Working on this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ✨ This is enhancing something existing or creating something new help wanted Extra attention is needed or someone is needed to help
Projects
None yet
Development

No branches or pull requests

2 participants