-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Provide a better visualization for collapsing long blocks of code/output #5405
Comments
@svrnm , can you please assign this to me? |
@svrnm , here are my suggestions for improvement 1Preview with Gradient Fade:
2. Visual Indicators:
3.Interactive Elements:
4.Accessibility Improvements: Kindly let me know if I can proceed with my Implementation, thanks |
@kemsguy7 this sounds good to me. Please start with focusing on 1 Preview with Gradient Fade in a pull request, if we get this working, we can address the other few additional improvements. |
Alright mentor, will will send a PR soon |
@svrnm As I mentioned in #5463, I'd prefer a simpler solution. We can probably, for now, make due with CSS styling over /cc @jack-berg |
@chalin let's talk about this at the next SIG meeting (Monday next week) |
We are currently using
<details>
and<summary>
to wrap long code blocks or text outputs. An example can be seen here:Code: https://github.com/open-telemetry/opentelemetry.io/blob/main/content/en/docs/languages/js/getting-started/nodejs.md?plain=1#L254
Output: https://opentelemetry.io/docs/languages/js/getting-started/nodejs/#run-the-instrumented-app
Screenshot:
This is really hard to see and easily overseen when someone scrolls through the page, especially when they are looking for the expected output or a code snippet.
It would be great to have a better visualization, e.g. the first few lines are shown but the rest is hidden away with an "unfold" button. There are plenty of options, but it would be good to have something that makes it visually clear that there is something behind that "tiny arrow"
Special Note for Outreachy Contributors: if you want to work on this issue, please make sure that you have completed the small steps and at least one assigned issue as outlined here: #5290
The text was updated successfully, but these errors were encountered: