Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7c115c4

Browse files
committed
feat: add border to the disabled fields
ref issue #138
1 parent 249139a commit 7c115c4

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/components/DateInput/styles.module.scss

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
border-color: #fe665d;
1010
}
1111
}
12+
13+
input:disabled:not(:focus) {
14+
border: 1px solid #ddd;
15+
}
1216
}
1317

1418
.datepicker-wrapper > div:nth-child(2) > div:nth-child(2) {

src/components/MarkdownEditor/styles.module.scss

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
@import "styles/include";
22

3+
// we use viewer mode to show editor when it's "disabled"
34
.editor-viewer {
45
> div:first-child {
5-
// border: 1px solid #aaaaab;
6+
border: 1px solid #ddd;
67
border-radius: 4px;
78
overflow: hidden;
89
box-sizing: border-box;
910
padding: 16px 25px 0px 25px;
1011
height: 280px;
1112
overflow-y: auto;
12-
border: 0;
1313
background: #fafafb;
14-
box-shadow: none;
15-
color: #6b6b6b;
16-
-webkit-text-fill-color: #808080;
1714
}
1815
.message {
1916
@include font-roboto;

src/components/ReactSelect/index.jsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ const ReactSelect = (props) => {
1414
control: (provided, state) => ({
1515
...provided,
1616
minHeight: "40px",
17-
border: state.isDisabled ? "none" : "1px solid #aaaaab",
17+
border:state.isDisabled ? "1px solid #ddd" : "1px solid #aaaaab",
1818
borderColor: state.isFocused ? "#55a5ff" : "#aaaaab",
19-
boxShadow: state.isDisabled
20-
? "none"
21-
: state.isFocused
22-
? "0 0 2px 1px #cee6ff"
23-
: provided.boxShadow,
19+
boxShadow: state.isFocused ? "0 0 2px 1px #cee6ff" : provided.boxShadow,
2420
backgroundColor: state.isDisabled ? "#fafafb" : provided.backgroundColor,
2521
color: state.isDisabled ? "#6b6b6b" : provided.color,
2622
}),

src/components/TextInput/styles.module.scss

+4
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@
2424
box-shadow: none !important;
2525
}
2626
}
27+
28+
input.TextInput:not([type="checkbox"]):disabled {
29+
border: 1px solid #ddd;
30+
}

0 commit comments

Comments
 (0)