@cosxai/ui 0.4.4 → 0.4.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.
package/package.json
CHANGED
|
@@ -53,6 +53,16 @@ export function ActionBarMenuGroup({
|
|
|
53
53
|
return (
|
|
54
54
|
<div
|
|
55
55
|
ref={wrapperRef}
|
|
56
|
+
// ck-actionbar-group--open scopes a deeper hover tint to the
|
|
57
|
+
// children while the disclosure is open. The default
|
|
58
|
+
// .ck-actionbar-btn:hover uses --ck-bg-muted (gray) — fine when
|
|
59
|
+
// a button sits on app background, but reads muddy when stacked
|
|
60
|
+
// on top of this wrapper's --ck-accent-muted pill. The chrome
|
|
61
|
+
// sheet replaces the gray with an accent-blended overlay only
|
|
62
|
+
// for that scope so the hover signal stays in the accent hue.
|
|
63
|
+
className={
|
|
64
|
+
isOpen ? "ck-actionbar-group ck-actionbar-group--open" : "ck-actionbar-group"
|
|
65
|
+
}
|
|
56
66
|
style={{
|
|
57
67
|
display: "inline-flex",
|
|
58
68
|
alignItems: "center",
|
package/src/styles/index.css
CHANGED
|
@@ -185,6 +185,13 @@ html[data-ck-chrome="seamless"] .ck-card__foot {
|
|
|
185
185
|
.ck-actionbar-btn:hover:not(:disabled):not(.ck-actionbar-btn--primary) {
|
|
186
186
|
background: var(--ck-bg-muted);
|
|
187
187
|
}
|
|
188
|
+
/* Children inside an open disclosure group sit on top of the wrapper's
|
|
189
|
+
--ck-accent-muted pill. The default gray hover above reads as a hue
|
|
190
|
+
collision against the coral/indigo wrapper — swap in an accent-blended
|
|
191
|
+
overlay so the hover signal stays in the accent family. */
|
|
192
|
+
.ck-actionbar-group--open .ck-actionbar-btn:hover:not(:disabled):not(.ck-actionbar-btn--primary) {
|
|
193
|
+
background: color-mix(in oklab, var(--ck-accent) 18%, transparent);
|
|
194
|
+
}
|
|
188
195
|
.ck-actionbar-btn--primary {
|
|
189
196
|
background: var(--ck-accent);
|
|
190
197
|
color: var(--ck-text-inverse);
|