Skip to content

Commit 8cb79f3

Browse files
authored
add border to form inputs when using light them (#252)
1 parent 42c3f1f commit 8cb79f3

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

packages/docusaurus-theme-openapi/src/theme/ApiDemoPanel/FormMultiSelect/styles.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
border: 2px solid transparent;
1414
}
1515

16+
html[data-theme="light"] .selectInput {
17+
border-color: var(--ifm-color-primary-lightest);
18+
border-style: solid;
19+
border-width: 1px;
20+
}
21+
1622
.selectInput {
1723
composes: inputBase;
1824
-moz-appearance: none;

packages/docusaurus-theme-openapi/src/theme/ApiDemoPanel/FormSelect/styles.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ html[data-theme="dark"] .selectInput {
3434
background-size: auto auto;
3535
}
3636

37+
html[data-theme="light"] .selectInput {
38+
border-color: var(--ifm-color-primary-lightest);
39+
border-style: solid;
40+
border-width: 1px;
41+
}
42+
3743
.selectInput {
3844
composes: inputBase;
3945
-moz-appearance: none;

packages/docusaurus-theme-openapi/src/theme/ApiDemoPanel/FormTextInput/styles.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
border-radius: 4px;
1313
}
1414

15+
html[data-theme="light"] .input {
16+
border-color: var(--ifm-color-primary-lightest);
17+
border-style: solid;
18+
border-width: 1px;
19+
}
20+
1521
.input {
1622
composes: inputBase;
1723
}

0 commit comments

Comments
 (0)