Skip to content

Commit 5d8898b

Browse files
committed
fix: reset css within shadow dom
before some properties such as color would actually be inherited within the shadow dom, leading to inconsistent styling and bugs
1 parent 5ca36ce commit 5d8898b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/autocomplete/autocomplete.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
* { box-sizing: border-box }
22

33
:host {
4+
all: initial; /* reset styles within Shadow DOM, no inheritance */
5+
46
--gray-100: #F3F4F6;
57
--gray-300: #D1D5DB;
68
--gray-500: #6B7280;

0 commit comments

Comments
 (0)