@stackoverflow/stacks 1.6.3 → 1.6.5
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.
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
// Label status flag
|
|
38
38
|
// Is this form item required or optional? Flag the status for users.
|
|
39
39
|
// Default styling is optional.
|
|
40
|
-
|
|
40
|
+
&--status { // TODO convert to require parent class for styling [1]
|
|
41
41
|
--_la-status-b: none;
|
|
42
42
|
--_la-status-bg: var(--black-050);
|
|
43
43
|
--_la-status-fc: var(--fc-medium);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
&__new {
|
|
55
55
|
--_la-status-bg: var(--green-100);
|
|
56
56
|
--_la-status-fc: var(--green-700);
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
.dark-mode({
|
|
59
59
|
--_la-status-bg: var(--green-050);
|
|
60
60
|
--_la-status-fc: var(--green-800);
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
&__required {
|
|
64
64
|
--_la-status-bg: var(--red-100);
|
|
65
65
|
--_la-status-fc: var(--red-700);
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
.dark-mode({
|
|
68
68
|
--_la-status-bg: var(--red-050);
|
|
69
69
|
--_la-status-fc: var(--red-800);
|
|
@@ -96,3 +96,8 @@
|
|
|
96
96
|
font-weight: 600;
|
|
97
97
|
padding: 0 var(--su2); // Helps the label visually line up with inputs
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
// [1] In Core, we have *many* instances of `.s-label--status` used without the `.s-label` parent.
|
|
101
|
+
// While I'd prefer to enforce the requirement of the parent class, it's too much of a lift at this moment.
|
|
102
|
+
// We'll come back to it, hopefully when we have a pill component to replace the current usage of `.s-label--status`
|
|
103
|
+
// without the base label class.
|