Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b90068

Browse files
committed
Add missing :host selectors to shadowdom CSS
1 parent 88d7e8f commit 4b90068

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ class ImageCropElement extends HTMLElement {
210210
touch-action: none;
211211
display: block;
212212
}
213-
.nesw { cursor: nesw-resize; }
214-
.nwse { cursor: nwse-resize; }
215-
.nesw .crop-box,
216-
.nwse .crop-box {
213+
:host(.nesw) { cursor: nesw-resize; }
214+
:host(.nwse) { cursor: nwse-resize; }
215+
:host(.nesw) .crop-box,
216+
:host(.nwse) .crop-box {
217217
cursor: inherit;
218218
}
219219
:host([loaded]) .crop-image { display: block; }

0 commit comments

Comments
 (0)