Skip to content

Commit

Permalink
refactor(libs/ui): remove implicit c-link--icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vnphanquang committed Mar 18, 2024
1 parent 82c19ca commit 0643b09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fast-rockets-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltevietnam/ui': patch
---

remove implicit `c-link--icon` with `:has`. Specifiy explicity when needed
2 changes: 1 addition & 1 deletion libs/ui/src/css/core/components/c-link.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@custom-selector :--lazy .c-link--lazy;
@custom-selector :--box .c-link--box;
@custom-selector :--__icon :is(img, svg); /* nested icon within c-link */
@custom-selector :--icon :is(.c-link--icon, :has(:--__icon));
@custom-selector :--icon :is(.c-link--icon);
@custom-selector :--image .c-link--image;

.c-link {
Expand Down

0 comments on commit 0643b09

Please sign in to comment.