feat(mistica-css): Chip#1350
Conversation
|
Size stats
|
| <div> | ||
| <button class="mistica-chip">Chip button</button> | ||
| <a href="#" class="mistica-chip">Chip a</a> | ||
| <label class="mistica-chip"><input type="checkbox" /><span>Chip checkbox</span></label> |
There was a problem hiding this comment.
the span for the label text is needed in this case to be able to change the label styles depending on the sibling checkbox state (:active :checked, etc) input:checked + span
I could avoid the span using :has() to style the label with something like label:has(input:checked), but has() doesn't have enough browser support
|
Accessibility report ℹ️ You can run this locally by executing |
|
Deploy preview for mistica-web ready! ✅ Preview Built with commit 595479e. |
|
🎉 This PR is included in version 16.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
https://jira.tid.es/browse/WEB-2191