picocss/pico

Card inside a Dialog does not have the correct width.

Zurga opened this issue · 0 comments

First of all, sorry for the big images, thanks for the great library.

Describe the issue

Screen Shot 2024-04-26 at 15 36 39

Current Behavior

Due to the dialog selector not being specific enough, the Card is rendered incorrectly. If the Modal selector is set to the next child, it works well. i.e. dialog > article.

Expected Behavior

Screen Shot 2024-04-26 at 15 36 22

Reproduction URL

We recommend including a link to a minimal reproduction of the bug using CodePen or a similar tool.
Please do not link to your actual project. Instead, we need a reduced test case in a new project without any unnecessary code.

Environment

Example: OS, versions, browser details.