-
Notifications
You must be signed in to change notification settings - Fork 421
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
Include close icon styles in classless #400
Include close icon styles in classless #400
Conversation
@asbjornu I strongly prefer keeping the classless version without any classes. |
@lucaslarroche, I understand that "classless" preferably should not include any classes. Still, as explained in #399, I think feature parity between the "classless" and "classy" versions of Pico is more important than the classless version being guaranteed not to contain a single class. Could we find a compromise so the Perhaps applied to an element or different attribute instead of a class name? How about using the
In CSS and HTML respectively, it could look like the following: dialog {
article {
a[rel="prev"] {
/* Current .close styles */
}
}
} <dialog>
<article>
<a rel="prev" href="#close" aria-label="Close"></a>
</article>
</dialog> An alternative to the
…or
Thoughts? |
I like it. Great idea 🙂. This is a breaking change. Would you update your PR (or open a new one) to ship this change against the v2 branch? Here is the file: Note: |
8d2f7b5
to
b644b78
Compare
@lucaslarroche great! The change is made and the PR is rebased against |
b644b78
to
88c1a6b
Compare
@lucaslarroche, or should I rebase against |
I initially wanted to say that we could also replace In this case, it will be shipped against So, if you want, you can also open a second PR against |
Yes |
I see.
Ok, cool. Then I think it's probably safest to not introduce the
No problem! 😃
Nice!
Sure!
Ok! 👍🏼 |
88c1a6b
to
4e35c62
Compare
4e35c62
to
d85d2f1
Compare
Ok, approved, I will merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Include the
.close
icon styling in theclassless
stylesheet. Fixes #399.