Skip to content

Commit 59ee81c

Browse files
committed
reset css style to initial at the host level using 'all: initial;'
1 parent aacb096 commit 59ee81c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/json-schema-viewer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default class JsonSchemaViewer extends LitElement {
8686
InfoStyles,
8787
css`
8888
:host {
89+
all: initial;
8990
display:flex;
9091
flex-direction: column;
9192
min-width:360px;

src/rapidoc-mini.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export default class RapiDocMini extends LitElement {
105105
InfoStyles,
106106
css`
107107
:host {
108+
all: initial;
108109
display:flex;
109110
flex-direction: column;
110111
min-width:360px;

src/rapidoc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export default class RapiDoc extends LitElement {
158158
InfoStyles,
159159
css`
160160
:host {
161+
all: initial;
161162
display:flex;
162163
flex-direction: column;
163164
min-width:360px;
@@ -174,7 +175,7 @@ export default class RapiDoc extends LitElement {
174175
}
175176
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
176177
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
177-
.body {
178+
.body {
178179
display:flex;
179180
height:100%;
180181
width:100%;

0 commit comments

Comments
 (0)