-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[RFC] Differenciate "caution" admonitions #19181
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
Comments
ReStructuredText comes with a |
I do think "data integrity" and "security" (in a broad meaning) deserve to be separated from the rest. But if you people do not think it's worth it i'm fine with it. I'll list all those "gray area" admonitions and we may discuss the "not-obvious" ones, maybe write a sort of "rule" down ? |
Well Github now does the same move: https://github.blog/changelog/2023-12-14-new-markdown-extension-alerts-provide-distinctive-styling-for-significant-content/ |
Yes, I think this change makes sense. As Wouter said, RST gives us What Simon said is a good way to decide which one to use: "data integrity or security" issues --> danger; anything else --> caution. The map from GitHub admonitions would be:
Next steps?
Anything else? |
I'm having a look at docs-builder |
I'm having a look at cautions in the overall docs repo to change some to danger. |
Here are some suggestions for the danger icon (from tabler) Currently the |
Got it, thank you for letting me know! |
@javiereguiluz the only thing that'd need to change i think is the I can open a PR and add a test with a new expected / source block for danger if you want ? |
(don't mind me i just discovered we can show colors in github's markdown) |
This PR was squashed before being merged into the main branch. Discussion ---------- Add directive test for admonition/danger Follows this topic about admonition levels on symfony/symfony-docs: [[RFC] Differenciate "caution" admonitions #19181 ](symfony/symfony-docs#19181) The bloc `danger` will be used soon in Symfony docs (cc [javiereguiluz](https://github.com/javiereguiluz) [comment](symfony/symfony-docs#19181 (comment)) ). So this PR allow a single test to check its compilation. Commits ------- 2f89856 Add directive test for admonition/danger
Let's close this one as fixed. We did an amazing team work here 💪
E.g.
Thanks! |
Thank you all 😃 |
TLDR: Way too much text to suggest two things :
While reading the bundle docs, I felt a bit... "attacked" (big quotes around, I'm all right haha..) This is a minor topic. But even on an tiny tiny level, i think there may be something there to improve easily.
Why "attacked" ? As the perfect human beeing i am (**cough**), when it's red, in my head i understand "this is a danger, a risk and i must read this right now".
It was neither a danger, neither something i had to read. And when it happens a lot, i really feel patronized / yelled at.
So maybe a softer red could be used (see suggestions at the end of this message), or ....
Differenciate DANGER and... ??
I think there is a semantic difference between "danger/alert/caution" and "warning"(?).
To illustrate, the following blocs should be (in my mind) on two really different levels of importance.
We had a similar discussion recently on the UX repository about the UX packages docs. I was not keen to display a big red/caution block to give an information. But that information was a pretty highly important one.
So i suggest to differenciate CAUTION either by
But in both case i don't find the "perfect word" for it.
Style on mobile
On mobile, i find the
admonition-*
blocks really large. Maybe some small modifications could be made to ease the reading:margin-bottom
after the titlefont-size
(as it's done for the "since-version" blocks)border-width
(2px currently)See how it compares in the following before/after table.
Suggestion
Here a 3 screens to visualise what those ideas could render
The text was updated successfully, but these errors were encountered: