@cosxai/ui 0.11.1 → 0.11.2
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 +1 -1
- package/src/actionbar/ActionBar.tsx +14 -7
package/package.json
CHANGED
|
@@ -415,18 +415,25 @@ export function ActionBar({
|
|
|
415
415
|
alignItems: "center",
|
|
416
416
|
gap: 4,
|
|
417
417
|
zIndex: 80,
|
|
418
|
-
// Bar
|
|
419
|
-
// whole-bar tint
|
|
420
|
-
//
|
|
421
|
-
//
|
|
422
|
-
//
|
|
423
|
-
//
|
|
418
|
+
// Bar background stays constant across modes — the earlier
|
|
419
|
+
// whole-bar tint composited under the item hover overlay
|
|
420
|
+
// (cool grey on tinted warm base) produced an awkward green
|
|
421
|
+
// cast on hover, and competed with the shield toggle for
|
|
422
|
+
// signal. Border colour DOES swap to accent when admin mode
|
|
423
|
+
// is on so the elevated state reads at a glance without a
|
|
424
|
+
// heavy surface change; the shield glyph adds a second cue
|
|
425
|
+
// (outline off → filled on) at the toggle itself.
|
|
424
426
|
background: "var(--ck-bg-surface)",
|
|
425
|
-
border:
|
|
427
|
+
border: `1px solid ${
|
|
428
|
+
adminMode
|
|
429
|
+
? "var(--ck-accent, #4f46e5)"
|
|
430
|
+
: "var(--ck-border-subtle)"
|
|
431
|
+
}`,
|
|
426
432
|
borderRadius: 999,
|
|
427
433
|
boxShadow: "var(--ck-shadow-3)",
|
|
428
434
|
fontFamily: "var(--ck-font-sans)",
|
|
429
435
|
color: "var(--ck-text-primary)",
|
|
436
|
+
transition: "border-color 200ms var(--ck-ease, ease)",
|
|
430
437
|
...style,
|
|
431
438
|
}}
|
|
432
439
|
>
|