@webority/theme 0.6.2 → 0.6.3
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/dist/webority-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_components.scss +28 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
package/scss/_components.scss
CHANGED
|
@@ -75,6 +75,13 @@
|
|
|
75
75
|
min-height: var(--wui-control-height);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// Tactile press feedback — every variant AND every size (sm/md/lg). Kept
|
|
79
|
+
// separate from the height rule above so sm/lg (which opt out of the shared
|
|
80
|
+
// control height) still get the nudge. A signal, not a depth cue.
|
|
81
|
+
.btn:not(.btn-pill):not(.btn-pill-sm):not(.u-action):not(.btn-icon):active:not(:disabled) {
|
|
82
|
+
transform: translateY(1px);
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
.btn-primary {
|
|
79
86
|
// Pin hover/active to the pressed-primary token so a rebrand tracks
|
|
80
87
|
// automatically instead of Bootstrap auto-shading $primary off-spec.
|
|
@@ -82,9 +89,27 @@
|
|
|
82
89
|
--bs-btn-hover-border-color: var(--wui-primary-pressed);
|
|
83
90
|
--bs-btn-active-bg: var(--wui-primary-pressed);
|
|
84
91
|
--bs-btn-active-border-color: var(--wui-primary-pressed);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.btn-danger {
|
|
95
|
+
// Pin hover/active to the pressed-danger token so Bootstrap cannot auto-shade the fill
|
|
96
|
+
// off-spec — the same treatment .btn-primary gets above. That is what stops the label
|
|
97
|
+
// flipping between states: once the fill stops moving, color-contrast() resolves the
|
|
98
|
+
// same way on every state.
|
|
99
|
+
//
|
|
100
|
+
// The label is deliberately NOT pinned to white. --wui-danger (#F8285A) carries white
|
|
101
|
+
// at 3.86:1 and --wui-danger-active (#E82646) at 4.38:1, both under the 4.5:1 AA floor,
|
|
102
|
+
// so forcing white is a serious color-contrast violation — axe flags it on BOTH
|
|
103
|
+
// surfaces. Bootstrap's automatic choice (the dark label, 5.44:1) is the accessible one
|
|
104
|
+
// and is what has always shipped.
|
|
105
|
+
//
|
|
106
|
+
// If white-on-red is wanted — it is the conventional destructive look — the fix is to
|
|
107
|
+
// darken --wui-danger to about #C81340 (white 5.80:1), which is a brand decision, not a
|
|
108
|
+
// per-component override.
|
|
109
|
+
--bs-btn-hover-bg: var(--wui-danger-active);
|
|
110
|
+
--bs-btn-hover-border-color: var(--wui-danger-active);
|
|
111
|
+
--bs-btn-active-bg: var(--wui-danger-active);
|
|
112
|
+
--bs-btn-active-border-color: var(--wui-danger-active);
|
|
88
113
|
}
|
|
89
114
|
|
|
90
115
|
|