pico icon indicating copy to clipboard operation
pico copied to clipboard

[Feature Request] Admonitions

Open RoyiAvital opened this issue 4 years ago • 5 comments
trafficstars

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.

RoyiAvital avatar Jan 04 '21 12:01 RoyiAvital

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.

lucaslarroche avatar Jan 04 '21 15:01 lucaslarroche

I think they use alerts with some customization for other kind of "alerts" such as: Tip, Info, Warning, etc...

RoyiAvital avatar Jan 04 '21 18:01 RoyiAvital

@lucaslarroche , Any update on this?

RoyiAvital avatar Mar 20 '21 09:03 RoyiAvital

@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.

lucaslarroche avatar Mar 21 '21 04:03 lucaslarroche

If anyone is interested, simple Pico.css alerts, which inherit properties from Pico: https://codepen.io/mjau-mjau/full/xxjZRGg

mjau-mjau avatar Sep 08 '22 04:09 mjau-mjau

@mjau-mjau thank you, that's a great starting point

a-chris avatar Jun 19 '23 21:06 a-chris

+1 for this to be a standard feature of Picocss. I ❤️ Picocss and an alert system is a very common component.

jpshackelford avatar Jan 18 '24 20:01 jpshackelford