genesys-react-components 0.2.4-devengage-1548-theme-updates.199 → 0.2.4-devengage-1548-theme-updates.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -1
- package/build/index.js +3 -3
- package/package.json +1 -1
- package/src/dxitemgroup/DxCheckbox.scss +19 -16
- package/src/dxitemgroup/dropdown.scss +10 -8
- package/src/dxitemgroup/multiselect.scss +12 -9
- package/src/theme/typography.scss +19 -0
- package/src/theme/variables.scss +9 -0
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ import { DxTextbox } from 'genesys-react-components';
|
|
|
22
22
|
import { GenesysDevIcons } from 'genesys-dev-icons';
|
|
23
23
|
|
|
24
24
|
export default function App() {
|
|
25
|
-
const inputRef = useRef<HTMLInputElement>
|
|
25
|
+
const inputRef = useRef < HTMLInputElement > null;
|
|
26
26
|
return (
|
|
27
27
|
<div className="app">
|
|
28
28
|
<DxTextbox
|
|
@@ -107,3 +107,26 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
107
107
|
The cause of the issue is the first reason. The react-dom dependency is sourced from different locations for the component package and the React app that's using it. The package loads `<thisrepo>/node_modules/react_dom/` but the React app loads `<thisrepo>/app/node_modules/react-dom/` causing them to be different packages even though the loaded versions are identical.
|
|
108
108
|
|
|
109
109
|
The solution is to delete `<thisrepo>/node_modules/` when using `npm link` in a any local React app. It doesn't seem to matter the order of operations as long as the folder is gone before `npm run start` is run to build the React app.
|
|
110
|
+
|
|
111
|
+
## Concepts and Best Practices
|
|
112
|
+
|
|
113
|
+
### What SHOULD go in this package?
|
|
114
|
+
|
|
115
|
+
This package yields two conceptual things: React components and style information.
|
|
116
|
+
|
|
117
|
+
Components should be added to this package that provide _functionality_ beyond the base HTML elements and built-in JSX/React constructs. This functionality may be complex and interact with the user, like buttons and text boxes, but can also be simple and provide standardization with no user interaction, like the loading placeholder.
|
|
118
|
+
|
|
119
|
+
Style information can be added to the package in two primary ways.
|
|
120
|
+
|
|
121
|
+
The most straightforward is to apply styles to a component in the package. A component should have a file of the same name, but with the `.scss` file extension to contain its styles.
|
|
122
|
+
|
|
123
|
+
The package also provides general-purpose style information using selectors that apply to base HTML elements. These are broken out into a few individual files that can be consumed individually:
|
|
124
|
+
|
|
125
|
+
- `src/theme/variables.scss` - The variables definition can be used by consuming applications to make any part of its own UI theme-aware. This is typically applied to the page's background, text colors, and custom components in the app.
|
|
126
|
+
- `src/theme/typography.scss` - This file sets base theme style rules controlling the default colors and fonts. These rules apply to standard HTML elements, not components in the package.
|
|
127
|
+
- `src/theme/roboto.scss` - The _Roboto_ font.
|
|
128
|
+
- `src/theme/scrollbars.scss` - Styles for scrollbars
|
|
129
|
+
|
|
130
|
+
### What SHOULD NOT go in this package?
|
|
131
|
+
|
|
132
|
+
This package is not a shim for base HTML elements. As such, it should not contain components that neither provide custom functionality nor extend/enhance/normalize base HTML elements.
|
package/build/index.js
CHANGED
|
@@ -102,10 +102,10 @@ styleInject(css_248z$d);
|
|
|
102
102
|
var css_248z$c = "";
|
|
103
103
|
styleInject(css_248z$c);
|
|
104
104
|
|
|
105
|
-
var css_248z$b = ".dx-select-group {\n appearance: none;\n position: relative;\n}\n.dx-select-group select {\n border: 1px solid
|
|
105
|
+
var css_248z$b = "/*** \n * Core colors\n ***/\n/*** \n\t* Component-specific properties \n\t***/\n/*** \n\t* Theme definitions\n\t***/\n.dx-select-group {\n appearance: none;\n position: relative;\n}\n.dx-select-group select {\n border: 1px solid var(--theme-core-control-border-color);\n border-radius: 2px;\n background-color: var(--theme-core-control-alt-background-color);\n font-style: normal;\n font-weight: 300;\n font-size: 12px;\n line-height: 14px;\n color: var(--theme-core-control-textbox-text-color);\n padding: 8px 32px 8px 12px;\n width: 100%;\n appearance: none;\n}\n.dx-select-group select:focus-visible {\n outline: 2px solid var(--theme-core-control-focus-color);\n}\n.dx-select-group::after {\n position: absolute;\n bottom: 12px;\n right: 12px;\n content: \"\\f105\";\n font-size: 8px;\n font-family: genesys-dev-icons !important;\n font-style: normal;\n font-weight: normal !important;\n font-feature-settings: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n pointer-events: none;\n}\n.dx-select-group.disabled::after {\n color: var(--theme-core-control-disabled-text-color);\n}\n.dx-select-group.disabled select:disabled {\n background-color: var(--theme-core-control-disabled-background-color);\n border-color: var(--theme-core-control-disabled-border-color);\n color: var(--theme-core-control-disabled-text-color);\n cursor: not-allowed;\n}";
|
|
106
106
|
styleInject(css_248z$b);
|
|
107
107
|
|
|
108
|
-
var css_248z$a = ".dx-multiselect-group {\n appearance: none;\n position: relative;\n}\n.dx-multiselect-group select {\n border: 1px solid
|
|
108
|
+
var css_248z$a = "/*** \n * Core colors\n ***/\n/*** \n\t* Component-specific properties \n\t***/\n/*** \n\t* Theme definitions\n\t***/\n.dx-multiselect-group {\n appearance: none;\n position: relative;\n}\n.dx-multiselect-group select {\n border: 1px solid var(--theme-core-control-border-color);\n border-radius: 2px;\n background-color: var(--theme-core-control-alt-background-color);\n font-style: normal;\n font-weight: 300;\n font-size: 12px;\n line-height: 14px;\n color: var(--theme-core-control-textbox-text-color);\n width: 100%;\n appearance: none;\n scrollbar-color: #b0b2b5 transparent;\n}\n.dx-multiselect-group select:focus-visible {\n outline: 2px solid var(--theme-core-control-focus-color);\n}\n.dx-multiselect-group select option {\n overflow: hidden;\n white-space: pre;\n text-overflow: ellipsis;\n -webkit-appearance: none;\n font-style: normal;\n font-weight: 300;\n font-size: 12px;\n line-height: 31px;\n padding: 8px 12px;\n color: var(--theme-core-control-textbox-text-color);\n}\n.dx-multiselect-group select option:checked {\n color: var(--theme-core-tag-text-color);\n background-color: var(--theme-core-tag-background-color);\n}\n.dx-multiselect-group select option:disabled {\n color: #8a9a9e;\n cursor: not-allowed;\n}\n.dx-multiselect-group select::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n height: 7px;\n}\n.dx-multiselect-group select::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: #b0b2b5;\n}\n.dx-multiselect-group select::-webkit-scrollbar-corner {\n background: transparent;\n}\n.dx-multiselect-group.disabled select:disabled {\n background-color: var(--theme-core-control-disabled-background-color);\n border-color: var(--theme-core-control-disabled-border-color);\n cursor: not-allowed;\n}\n.dx-multiselect-group.disabled select:disabled option {\n color: var(--theme-core-control-disabled-text-color);\n}";
|
|
109
109
|
styleInject(css_248z$a);
|
|
110
110
|
|
|
111
111
|
var css_248z$9 = "/*** \n * Core colors\n ***/\n/*** \n\t* Component-specific properties \n\t***/\n/*** \n\t* Theme definitions\n\t***/\n.dx-label {\n margin: 20px 0;\n display: block;\n}\n.dx-label .label-text,\n.dx-label .input-description {\n display: block;\n font-family: Roboto;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 14px;\n color: var(--theme-core-control-label-color);\n}\n.dx-label .label-text {\n margin: 0 0 4px 0;\n}\n.dx-label .input-description {\n padding: 6px 20px;\n display: flex;\n flex-flow: row nowrap;\n gap: 8px;\n}\n.dx-label .input-description .icon {\n color: var(--theme-alertblock-info-icon-color);\n line-height: 0;\n}";
|
|
@@ -128,7 +128,7 @@ function DxLabel(props) {
|
|
|
128
128
|
return React.createElement("label", { className: className }, contents);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
var css_248z$8 = "/*** \n * Core colors\n ***/\n/*** \n\t* Component-specific properties \n\t***/\n/*** \n\t* Theme definitions\n\t***/\n.dx-checkbox {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n margin: 15px 0;\n}\n.dx-checkbox:first-of-type {\n margin-top: 0;\n}\n.dx-checkbox .label-text {\n font-family: Roboto;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 18px;\n color: var(--theme-
|
|
131
|
+
var css_248z$8 = "/*** \n * Core colors\n ***/\n/*** \n\t* Component-specific properties \n\t***/\n/*** \n\t* Theme definitions\n\t***/\n.dx-checkbox {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n margin: 15px 0;\n}\n.dx-checkbox:first-of-type {\n margin-top: 0;\n}\n.dx-checkbox .label-text {\n font-family: Roboto;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 18px;\n color: var(--theme-core-text-color);\n}\n.dx-checkbox input[type=checkbox] {\n -webkit-appearance: none;\n appearance: none;\n margin: 0 8px 0 0;\n width: 16px;\n height: 16px;\n border: 1px solid var(--theme-core-control-border-color);\n border-radius: 2px;\n background-color: var(--theme-core-control-background-color);\n flex-shrink: 0;\n}\n.dx-checkbox input[type=checkbox]::before {\n display: none;\n}\n.dx-checkbox input[type=checkbox]:checked {\n background-color: var(--theme-core-control-background-color);\n}\n.dx-checkbox input[type=checkbox]:checked::before {\n display: block;\n position: relative;\n top: 7px;\n left: 3px;\n font-size: 9px;\n line-height: 0;\n color: var(--theme-core-control-punch-color);\n content: \"\\f104\";\n font-family: genesys-dev-icons !important;\n font-style: normal;\n font-weight: normal !important;\n font-feature-settings: normal;\n font-variant: normal;\n text-transform: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.dx-checkbox input[type=checkbox]:not(:disabled):hover {\n border-color: var(--theme-core-control-punch-color);\n}\n.dx-checkbox input[type=checkbox]:not(:disabled):focus {\n outline: var(--theme-core-control-focus-color) solid 2px;\n}\n.dx-checkbox input[type=checkbox]:not(:disabled):focus-visible {\n outline: 0;\n}\n.dx-checkbox input[type=radio] {\n -webkit-appearance: none;\n appearance: none;\n margin: 0 8px 0 0;\n width: 16px;\n height: 16px;\n border: 1px solid var(--theme-core-control-border-color);\n border-radius: 8px;\n background-color: var(--theme-core-control-background-color);\n flex-shrink: 0;\n}\n.dx-checkbox input[type=radio]::before {\n display: none;\n}\n.dx-checkbox input[type=radio]:checked::before {\n content: \"\";\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 8px;\n position: relative;\n top: 2px;\n left: 2px;\n background-color: var(--theme-core-control-punch-color);\n}\n.dx-checkbox input[type=radio]:not(:disabled):hover {\n border-color: var(--theme-core-control-punch-color);\n}\n.dx-checkbox input[type=radio]:not(:disabled):focus {\n outline: var(--theme-core-control-focus-color) solid 2px;\n}\n.dx-checkbox input[type=radio]:not(:disabled):focus-visible {\n outline: 0;\n}\n.dx-checkbox.disabled {\n cursor: not-allowed;\n}\n.dx-checkbox.disabled input {\n border-color: var(--theme-core-control-disabled-border-color);\n cursor: not-allowed;\n}\n.dx-checkbox.disabled input:checked {\n background-color: var(--theme-core-control-disabled-background-color);\n cursor: not-allowed;\n}\n\n.dx-label .dx-checkbox .label-text {\n margin: 0;\n}";
|
|
132
132
|
styleInject(css_248z$8);
|
|
133
133
|
|
|
134
134
|
function DxCheckbox(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-react-components",
|
|
3
|
-
"version": "0.2.4-devengage-1548-theme-updates.
|
|
3
|
+
"version": "0.2.4-devengage-1548-theme-updates.200",
|
|
4
4
|
"description": "A React component library containing standardized form elements.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
font-size: 12px;
|
|
18
18
|
line-height: 18px;
|
|
19
|
-
color: var($--theme-
|
|
19
|
+
color: var($--theme-core-text-color);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
input[type='checkbox'] {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
margin: 0 8px 0 0;
|
|
29
29
|
width: 16px;
|
|
30
30
|
height: 16px;
|
|
31
|
-
border: 1px solid var($--theme-
|
|
31
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
32
32
|
border-radius: 2px;
|
|
33
|
-
background-color: var($--theme-
|
|
33
|
+
background-color: var($--theme-core-control-background-color);
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
// Fill in background on check
|
|
43
43
|
input[type='checkbox']:checked {
|
|
44
|
-
background-color: var($--theme-
|
|
44
|
+
background-color: var($--theme-core-control-background-color);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// Display checkmark on check
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
left: 3px;
|
|
53
53
|
font-size: 9px;
|
|
54
54
|
line-height: 0;
|
|
55
|
-
color: var($--theme-
|
|
55
|
+
color: var($--theme-core-control-punch-color);
|
|
56
56
|
|
|
57
57
|
// genesys-dev-icons app-check
|
|
58
58
|
content: '\f104';
|
|
@@ -66,19 +66,22 @@
|
|
|
66
66
|
-moz-osx-font-smoothing: grayscale;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// Hover -
|
|
69
|
+
// Hover - checkbox
|
|
70
70
|
input[type='checkbox']:not(:disabled):hover {
|
|
71
|
-
border-color: var($--theme-
|
|
71
|
+
border-color: var($--theme-core-control-punch-color);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// Focus -
|
|
74
|
+
// Focus - checkbox
|
|
75
75
|
input[type='checkbox']:not(:disabled):focus {
|
|
76
|
-
outline: var($--theme-
|
|
76
|
+
outline: var($--theme-core-control-focus-color) solid 2px;
|
|
77
77
|
}
|
|
78
78
|
// Disable default focus outline
|
|
79
79
|
input[type='checkbox']:not(:disabled):focus-visible {
|
|
80
80
|
outline: 0;
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
////// RADIO
|
|
84
|
+
|
|
82
85
|
input[type='radio'] {
|
|
83
86
|
// Hide default appearance
|
|
84
87
|
-webkit-appearance: none;
|
|
@@ -88,9 +91,9 @@
|
|
|
88
91
|
margin: 0 8px 0 0;
|
|
89
92
|
width: 16px;
|
|
90
93
|
height: 16px;
|
|
91
|
-
border: 1px solid var($--theme-
|
|
94
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
92
95
|
border-radius: 8px;
|
|
93
|
-
background-color: var($--theme-
|
|
96
|
+
background-color: var($--theme-core-control-background-color);
|
|
94
97
|
flex-shrink: 0;
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -109,17 +112,17 @@
|
|
|
109
112
|
position: relative;
|
|
110
113
|
top: 2px;
|
|
111
114
|
left: 2px;
|
|
112
|
-
background-color: var($--theme-
|
|
115
|
+
background-color: var($--theme-core-control-punch-color);
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
// Hover - radio button
|
|
116
119
|
input[type='radio']:not(:disabled):hover {
|
|
117
|
-
border-color: var($--theme-
|
|
120
|
+
border-color: var($--theme-core-control-punch-color);
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
// Focus - radio button
|
|
121
124
|
input[type='radio']:not(:disabled):focus {
|
|
122
|
-
outline: var($--theme-
|
|
125
|
+
outline: var($--theme-core-control-focus-color) solid 2px;
|
|
123
126
|
}
|
|
124
127
|
// Disable default focus outline
|
|
125
128
|
input[type='radio']:not(:disabled):focus-visible {
|
|
@@ -130,13 +133,13 @@
|
|
|
130
133
|
cursor: not-allowed;
|
|
131
134
|
|
|
132
135
|
input {
|
|
133
|
-
border-color: var($--theme-
|
|
136
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
134
137
|
cursor: not-allowed;
|
|
135
138
|
}
|
|
136
139
|
|
|
137
140
|
// Fill in background on check
|
|
138
141
|
input:checked {
|
|
139
|
-
background-color: var($--theme-
|
|
142
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
140
143
|
cursor: not-allowed;
|
|
141
144
|
}
|
|
142
145
|
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-select-group {
|
|
2
4
|
appearance: none;
|
|
3
5
|
position: relative;
|
|
4
6
|
|
|
5
7
|
select {
|
|
6
|
-
border: 1px solid
|
|
8
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
7
9
|
border-radius: 2px;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 300;
|
|
11
13
|
font-size: 12px;
|
|
12
14
|
line-height: 14px;
|
|
13
|
-
color:
|
|
15
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
14
16
|
padding: 8px 32px 8px 12px;
|
|
15
17
|
width: 100%;
|
|
16
18
|
appearance: none;
|
|
17
19
|
|
|
18
20
|
&:focus-visible {
|
|
19
|
-
outline: 2px solid
|
|
21
|
+
outline: 2px solid var($--theme-core-control-focus-color);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -40,13 +42,13 @@
|
|
|
40
42
|
|
|
41
43
|
&.disabled {
|
|
42
44
|
&::after {
|
|
43
|
-
color:
|
|
45
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
select:disabled {
|
|
47
|
-
background-color:
|
|
48
|
-
border-color:
|
|
49
|
-
color:
|
|
49
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
50
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
51
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
50
52
|
cursor: not-allowed;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-multiselect-group {
|
|
2
4
|
appearance: none;
|
|
3
5
|
position: relative;
|
|
4
6
|
|
|
5
7
|
select {
|
|
6
|
-
border: 1px solid
|
|
8
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
7
9
|
border-radius: 2px;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 300;
|
|
11
13
|
font-size: 12px;
|
|
12
14
|
line-height: 14px;
|
|
13
|
-
color:
|
|
15
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
14
16
|
width: 100%;
|
|
15
17
|
appearance: none;
|
|
16
18
|
|
|
17
19
|
&:focus-visible {
|
|
18
|
-
outline: 2px solid
|
|
20
|
+
outline: 2px solid var($--theme-core-control-focus-color);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
option {
|
|
@@ -28,10 +30,11 @@
|
|
|
28
30
|
font-size: 12px;
|
|
29
31
|
line-height: 31px;
|
|
30
32
|
padding: 8px 12px;
|
|
31
|
-
color:
|
|
33
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
32
34
|
|
|
33
35
|
&:checked {
|
|
34
|
-
|
|
36
|
+
color: var($--theme-core-tag-text-color);
|
|
37
|
+
background-color: var($--theme-core-tag-background-color);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
&:disabled {
|
|
@@ -62,12 +65,12 @@
|
|
|
62
65
|
|
|
63
66
|
&.disabled {
|
|
64
67
|
select:disabled {
|
|
65
|
-
background-color:
|
|
66
|
-
border-color:
|
|
68
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
69
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
67
70
|
cursor: not-allowed;
|
|
68
71
|
|
|
69
72
|
option {
|
|
70
|
-
color:
|
|
73
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
}
|
|
@@ -148,6 +148,25 @@
|
|
|
148
148
|
background-color: var($--theme-core-code-background-color);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
pre {
|
|
152
|
+
display: block;
|
|
153
|
+
margin: 0;
|
|
154
|
+
padding: 0;
|
|
155
|
+
border-radius: 4px;
|
|
156
|
+
background-color: var($--theme-core-code-background-color);
|
|
157
|
+
height: 100%;
|
|
158
|
+
width: 100%;
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
|
|
161
|
+
code {
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
margin: 0;
|
|
164
|
+
padding: 20px;
|
|
165
|
+
display: block;
|
|
166
|
+
color: var($--theme-core-code-color);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
151
170
|
// Standardized indentation
|
|
152
171
|
@mixin indent-tier($tier) {
|
|
153
172
|
.indent-#{$tier} {
|
package/src/theme/variables.scss
CHANGED
|
@@ -19,6 +19,9 @@ $--theme-core-control-textbox-text-color: --theme-core-control-textbox-text-colo
|
|
|
19
19
|
$--theme-core-control-textbox-placeholder-text-color: --theme-core-control-textbox-placeholder-text-color;
|
|
20
20
|
$--theme-core-control-textbox-background-color: --theme-core-control-textbox-background-color;
|
|
21
21
|
$--theme-core-control-textbox-border-color: --theme-core-control-textbox-border-color;
|
|
22
|
+
$--theme-core-control-disabled-background-color: --theme-core-control-disabled-background-color;
|
|
23
|
+
$--theme-core-control-disabled-text-color: --theme-core-control-disabled-text-color;
|
|
24
|
+
$--theme-core-control-disabled-border-color: --theme-core-control-disabled-border-color;
|
|
22
25
|
$--theme-core-tag-background-color: --theme-core-tag-background-color;
|
|
23
26
|
$--theme-core-tag-text-color: --theme-core-tag-text-color;
|
|
24
27
|
$--theme-core-punch-color: --theme-core-punch-color;
|
|
@@ -163,6 +166,9 @@ $theme-anemia: (
|
|
|
163
166
|
$--theme-core-control-textbox-background-color: #ffffff,
|
|
164
167
|
$--theme-core-control-textbox-border-color: #c6cbd1,
|
|
165
168
|
$--theme-core-control-textbox-placeholder-text-color: #757576,
|
|
169
|
+
$--theme-core-control-disabled-background-color: #9aafb5,
|
|
170
|
+
$--theme-core-control-disabled-text-color: #8a9a9e,
|
|
171
|
+
$--theme-core-control-disabled-border-color: #e8eaed,
|
|
166
172
|
$--theme-core-tag-background-color: #1ca2ab,
|
|
167
173
|
$--theme-core-tag-text-color: #ffffff,
|
|
168
174
|
$--theme-core-punch-color: #ff4f1f,
|
|
@@ -289,6 +295,9 @@ $theme-anemia-dark: (
|
|
|
289
295
|
$--theme-core-control-textbox-background-color: #6e6e75,
|
|
290
296
|
$--theme-core-control-textbox-border-color: #c6cbd1,
|
|
291
297
|
$--theme-core-control-textbox-placeholder-text-color: #999999,
|
|
298
|
+
$--theme-core-control-disabled-background-color: #c1cad688,
|
|
299
|
+
$--theme-core-control-disabled-text-color: #959699,
|
|
300
|
+
$--theme-core-control-disabled-border-color: #e8eaed,
|
|
292
301
|
$--theme-core-tag-background-color: #ffb3f7,
|
|
293
302
|
$--theme-core-tag-text-color: #2d2d2d,
|
|
294
303
|
$--theme-core-punch-color: #ff4f1f,
|