-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Test collapsibles #1149
Test collapsibles #1149
Conversation
@jmanico or @mackowski, happy to move forward with this |
This looks good, some lint issues but glad its working |
@jmanico can we merge this to main and see how both collapsibles are rendered? |
@thghosth, thanks! The CSRF Cheatsheet had already some linting errors, so I don't believe the check fails because of the new collapsible. @jmanico force merged it for my last PR. |
This was my mistake, my apologies for the early merge. |
@jmanico how do you want to proceed? Those linting errors have been there for some time. |
So @advename here is an example of how collapsibles using HTML renders: Is that sufficient to help you decide what to do? Do you still need to merge this PR now? |
@tghosth I see that you used the <details>
<summary>Click me</summary>
... stuff
</details> Approach. It renders code correctly, but the text is quite small. I'm OK with it, but would still be interested to see how the other syntax renders. |
I think 'small(er)' is fine, especially for code blocks as it makes
horizontal scroll bars less needed.
Plus anyone reading these cheat sheets with such collapsible content almost
certainly knows about Ctrl-+ or whatever else their browser of choice uses
to zoom in.
Just my $.02.
…-kevin
On Mon, Jul 3, 2023, 5:57 AM Lars ***@***.***> wrote:
@tghosth <https://github.com/tghosth> I see that you used the
<details>
<summary>Click me</summary>
... stuff</details>
Approach. It renders code correctly, but the text is quite small.
[image: image]
<https://user-images.githubusercontent.com/32460418/250523324-65dd35c0-ea33-4ed4-868e-10efbd9a7036.png>
I'm OK with it, but would still be interested to see how the other syntax
renders.
—
Reply to this email directly, view it on GitHub
<#1149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO6PG75BY4PDKAPDSFAV73XOKJPRANCNFSM6AAAAAAZK2V5HY>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I don't think that Collapsibles should become a dump yard for code blocks. Collapsibles, from the linked issue, should be used to reduce the size of the Cheatsheet to the minimum, with Collapsibles adding additional content (text, links & code blocks) that may explain why the previous is required, or where you can read more about the content. Moreover, the Collapsibles content from that page has a font-size of |
@advename all linter errors are around your changes these are all new. You can verify that in two ways:
|
politely closing this, I do not think we need it, respectfully. |
Regarding #1101, we've been discussing adding Collapsibles to OWASP to add additional information without increasing the size of the cheatsheet.
After some research, there seems 2 approaches here:
I added test collapsibles at the end of the CSRF cheatsheet page to see how they render. We can remove this instantly afterward. I'd like to know if they render OK before I invest time in #1143 or #1101.