Addresses review findings on the hover-states change. StatBox's hover was a no-op. `GradientBox` always paints an opaque `linear-gradient` via the `background` shorthand, which populates background-image and covers any `backgroundColor` beneath it, so the new hover was invisible — a regression from the `opacity: 0.95` it replaced. The overlay now layers onto the same gradient, and moves into `GradientBox` where `bg` is in scope, behind an `interactive` prop. The mobile card branch gated its cursor and hover on `onRowClick` alone, so expandable-row tables below the md breakpoint rendered cards that expand on click but showed no pointer and no hover — the exact inconsistency this change set out to fix, reintroduced on mobile. Both branches now share one `isInteractive` flag. The row action gear used the same overlay as the row beneath it. Alpha overlays compose, so it was not invisible as reported, but the resulting delta was 6 levels — too faint for a nested control. Adds `HOVER.CONTROL` (0.05) and an `action.controlHover` token for controls nested inside a hoverable row: the gear and the pagination arrows. Claude-Session: https://claude.ai/code/session_01AbYLvwpEaZFXktHVcqrFRd
26 lines
439 B
TypeScript
26 lines
439 B
TypeScript
export const SPACING = {
|
|
XXS: 0.25,
|
|
XS: 0.5,
|
|
SM: 1,
|
|
MD: 1.5,
|
|
LG: 2,
|
|
XL: 2.5,
|
|
XXL: 3,
|
|
} as const;
|
|
|
|
export const LAYOUT = {
|
|
XXS: 2,
|
|
XS: 4,
|
|
SM: 6,
|
|
MD: 8,
|
|
LG: 10,
|
|
XL: 12,
|
|
XXL: 16,
|
|
} as const;
|
|
|
|
export const HOVER = {
|
|
DARKEN: 0.06, // This is a coefficient for darkening function
|
|
ROW: 0.025, // Overlay alpha for hoverable rows and cards
|
|
CONTROL: 0.05, // Stronger overlay for controls nested inside a hoverable row
|
|
} as const;
|