pico
pico copied to clipboard
[Feature Request] Admonitions
This is a great and clean CSS.
Any chance of having Admonitions.
Something like in Jupyter will be great: https://jupyterbook.org/content/content-blocks.html.
Thank you.
What would be the HTML code for an admonition? It is same as an alert?
I try to stick to official HTML Elements and ARIA Roles as much as I can.
role="alert" looks good at first, but "Screen readers will instantly start reading out the updated content" so it seems irrelevant to me.
But on the other hand, Bootsrap uses role="alert" in its examples.
I think they use alerts with some customization for other kind of "alerts" such as: Tip, Info, Warning, etc...
@lucaslarroche , Any update on this?
@RoyiAvital,
I'm open to a pull request in dev/ for a role="alert" component.
<div role="alert"></div>
For colors customization, I am thinking about integrating some SCSS mixins. It would be best to wait until the color variation system is complete before creating new components.
If anyone is interested, simple Pico.css alerts, which inherit properties from Pico: https://codepen.io/mjau-mjau/full/xxjZRGg
@mjau-mjau thank you, that's a great starting point
+1 for this to be a standard feature of Picocss. I ❤️ Picocss and an alert system is a very common component.