@crisp-ui-kit/crisp 0.55.2 → 0.55.4

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/styles.css CHANGED
@@ -499,16 +499,26 @@
499
499
  radius, and datatable-grip and the embedded pickers zero theirs. An 8px
500
500
  radius survived the chip-to-full-cell conversion and shipped rounded
501
501
  until #282, so the spec check now guards it. */
502
- /* The hit target is the WHOLE summary cell -- measured 246x37 with
502
+ /* The hit target is the WHOLE summary cell -- measured 246x36 with
503
503
  padding 0 12px, not a content-sized chip. Clicking anywhere in the cell
504
- opens the aggregation menu. */
505
- & .crisp-columncalc-trigger { display: flex; align-items: center; gap: var(--crisp-space-1); width: 100%; height: 100%; min-height: var(--crisp-size-tableRow); margin: 0; padding: 0 var(--crisp-space-3); border: none; background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
504
+ opens the aggregation menu.
505
+ No `min-height` (crisp#834, found reproducing the footer-row-38px-
506
+ not-36px bug in an isolated browser test, not table.recipe.ts's own border/box-sizing, the hypothesis the issue itself flagged as unconfirmed): the table cell's OWN `height: tableRow` (36px,
507
+ border-box) leaves 34px of content box once its 2px of top+bottom
508
+ border are counted, and `min-height: tableRow` here demanded 36px
509
+ of CONTENT height regardless -- overflowing the cell by 2px, which
510
+ auto-height table layout resolves by growing the whole row to fit,
511
+ landing at exactly the reported 38. `height: 100%` alone already
512
+ fills whatever the cell's real content box is (the doc comment above this rule's own stated intent), with nothing left demanding more. */
513
+ & .crisp-columncalc-trigger { display: flex; align-items: center; gap: var(--crisp-space-1); width: 100%; height: 100%; margin: 0; padding: 0 var(--crisp-space-3); border: none; background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
506
514
  & .crisp-columncalc-trigger:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
507
515
  & .crisp-columncalc-trigger svg { flex-shrink: 0; opacity: 0.7; }
508
516
  & .crisp-columncalc-trigger[data-align="right"] { justify-content: flex-end; }
509
517
  & .crisp-columncalc-placeholder { overflow: hidden; text-overflow: ellipsis; }
510
518
  & .crisp-columncalc-value { color: var(--crisp-fg-primary); font-variant-numeric: tabular-nums; }
511
- & .crisp-columncalc-op { color: var(--crisp-fg-muted); }
519
+ /* crisp#837: re-measured live against Attio's real footer calc label -- 14px (was 13px, `c.text.md`, fixed on the shared trigger rule above) and rgba(0,0,0,.63), the same color-mix(fgPrimary, 63%) figure this file's own -op label already should have used instead of the flatter
520
+ `fgMuted` token (a close but not measured match). */
521
+ & .crisp-columncalc-op { color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
512
522
  & .crisp-columncalc-section { padding: var(--crisp-space-1-5) var(--crisp-space-2) var(--crisp-space-1); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
513
523
  }
514
524
 
@@ -639,52 +649,64 @@
639
649
  class + one element) -- a bare `& th` here only won by source
640
650
  order, which flipped the moment table.recipe.ts's own CSS file happened to land after datatable's in the build (alphabetical:
641
651
  datatable < table), silently reinstating 12px on every header cell
642
- in the whole product and making every interactive column's button double it to 24px. Scoping through `.crisp-table` adds a second class to the selector (0,2,1 beats 0,1,1) so this can never lose a specificity tie to source order again. */
643
- & .crisp-table th { padding: 0; }
644
- /* Same wrapper trap as AUTHORING.md Lesson 40 (ColumnCalc's summary trigger):
645
- Menu wraps its trigger in a flex div that sizes to its content, so a
646
- long header grew past the column instead of filling it -- with nothing
647
- left to squeeze, the label's own ellipsis CSS (below) had no properly -sized box to truncate against, and the th's own overflow hard-clipped
648
- it with no "...". Fill the wrapper, scoped to th so Menu's default (correct everywhere else) is untouched. */
652
+ in the whole product and making every interactive column's button double it to 24px. Scoping through `.crisp-table` adds a second class to the selector (0,2,1 beats 0,1,1) so this can never lose a specificity tie to source order again. `thead th`, not a bare `th` (crisp#829): #779 made the primary column's BODY cell a real `<th scope="row">` for a11y, and a bare
653
+ `th` here matches that one too, zeroing an inset nothing else
654
+ supplies -- the primary column's text sat flush left, one column's
655
+ cell no longer matching its own header or any sibling `<td>`. Only
656
+ the header row's own `<th>` needs zero padding (its sort BUTTON owns the inset); the body row's `<th scope="row">` has no button,
657
+ and needs the SAME base 12px (table.recipe.ts, #465) every other
658
+ cell already gets. */
659
+ & .crisp-table thead th { padding: 0; }
660
+ /* Same wrapper trap as AUTHORING.md Lesson 40 (ColumnCalc's summary trigger): Menu wraps its trigger in a flex div that sizes to its content, so a long header grew past the column instead of filling it -- with nothing left to squeeze, the label's own ellipsis CSS (below) had no properly
661
+ -sized box to truncate against, and the th's own overflow hard-clipped it with no "...". Fill the wrapper, scoped to th so Menu's default
662
+ (correct everywhere else) is untouched. */
649
663
  & th .crisp-menu { width: 100%; height: 100%; }
650
664
  & .crisp-datatable-th-inner { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; min-width: 0; height: 100%; }
651
665
  & .crisp-datatable-th-inner > svg { flex-shrink: 0; color: var(--crisp-fg-muted); }
652
- /* crisp/#605 follow-up: a header with neither a Menu nor a sort button (the primary/entity column's now-inert path, or any column with no
653
- columnMenu/sortable at all) renders .crisp-datatable-th-inner as a
654
- DIRECT child of th instead of nested inside a button -- and loses
655
- the button's own 12px inset, drifting left of the td's 12px base
656
- inset. Measured live on Attio's own Companies grid: the header label and the cell's own text land at the exact same x (335px from the
657
- viewport, both 40px from the column's left edge) via two different padding+icon+gap combinations -- Attio does not leave the inert primary header flush left either. The `>` combinator targets only the button-less case: Menu's own wrapper (`.crisp-menu`) and the
658
- plain sort `button` both put >=1 more level between `th` and this
659
- span, so their own 12px (already on the button) isn't doubled. */
666
+ /* crisp/#605 follow-up: a header with neither a Menu nor a sort button
667
+ (the primary/entity column's now-inert path, or any column with no columnMenu/sortable at all) renders .crisp-datatable-th-inner as a DIRECT child of th instead of nested inside a button -- and loses the button's own 12px inset, drifting left of the td's 12px base inset. Measured live on Attio's own Companies grid: the header label
668
+ and the cell's own text land at the exact same x (335px from the viewport, both 40px from the column's left edge) via two different
669
+ padding+icon+gap combinations -- Attio does not leave the inert
670
+ primary header flush left either. The `>` combinator targets only
671
+ the button-less case: Menu's own wrapper (`.crisp-menu`) and the plain sort `button` both put >=1 more level between `th` and this span, so their own 12px (already on the button) isn't doubled. */
660
672
  & th > .crisp-datatable-th-inner { box-sizing: border-box; padding: 0 var(--crisp-space-3); }
661
- /* The summary cell has NO padding of its own -- the calculation trigger owns the whole 246x37 area so a click anywhere in the cell opens the menu. Zero the cell's inset and let ColumnCalc supply the 12px. */
673
+ /* The summary cell has NO padding of its own -- the calculation trigger
674
+ owns the whole 246x37 area so a click anywhere in the cell opens the
675
+ menu. Zero the cell's inset and let ColumnCalc supply the 12px. */
662
676
  & tfoot td { padding: 0; }
663
- /* Group heading row -- a view is grouped under a subtle label with the
664
- bucket's count beside it. */
665
- & .crisp-datatable-viewsettings { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
677
+ /* Group heading row -- a view is grouped under a subtle label with the bucket's count beside it. */
678
+ & .crisp-datatable-viewsettings { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
666
679
  & .crisp-datatable-viewsettings:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
667
680
  & .crisp-datatable-group-label { padding: var(--crisp-space-1-5) var(--crisp-space-2) var(--crisp-space-1); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
668
- & .crisp-datatable-group { height: var(--crisp-size-menuRow); padding: 0 var(--crisp-space-3); background: var(--crisp-bg-subtle); border-bottom: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
681
+ & .crisp-datatable-group { height: var(--crisp-size-menuRow); padding: 0 var(--crisp-space-3); background: var(--crisp-bg-subtle); border-bottom: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
669
682
  & .crisp-datatable-group-count { margin-inline-start: var(--crisp-space-1-5); color: var(--crisp-fg-muted); font-variant-numeric: tabular-nums; }
670
683
  & .crisp-datatable-th-rename { width: 100%; min-width: 0; height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-1); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); outline: none; }
671
684
  & .crisp-datatable-th-rename:focus { box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); }
672
685
  & .crisp-datatable-th-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
673
- /* #465: 12px per the comment above (and Attio's measured header cell
674
- padding: 0 12px) -- was still c.space["2"] (8px), drifted from its
675
- own documented value. */
686
+ /* #465: 12px per the comment above (and Attio's measured header cell padding: 0 12px) -- was still c.space["2"] (8px), drifted from its own documented value. */
676
687
  & .crisp-datatable-sort { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 var(--crisp-space-3); border: none; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: start; cursor: pointer; }
677
- /* A right-aligned column's header keeps its field-icon + label packed at the START, matching its own values only in that the VALUES right-align -- Attio's own right-aligned header (measured live: "Twitter follower
678
- count") keeps the icon+label left and only the trailing column-menu
679
- icon sits pinned to the right edge, independent of the label's width (#406, reversing #393's own justify-content: flex-end here). The
680
- chevron's own margin-inline-start: auto below already pins IT to the end of a flex-start row with no override needed -- that's what pins
681
- the trailing icon on Attio too. */
688
+ /* A right-aligned column's header keeps its field-icon + label packed at
689
+ the START, matching its own values only in that the VALUES right-align
690
+ -- Attio's own right-aligned header (measured live: "Twitter follower
691
+ count") keeps the icon+label left and only the trailing column-menu icon sits pinned to the right edge, independent of the label's width
692
+ (#406, reversing #393's own justify-content: flex-end here). The chevron's own margin-inline-start: auto below already pins IT to the
693
+ end of a flex-start row with no override needed -- that's what pins the trailing icon on Attio too. */
682
694
  & .crisp-datatable-chevron { margin-inline-start: auto; flex-shrink: 0; color: var(--crisp-fg-muted); opacity: 0; transition: opacity .12s; }
683
695
  & .crisp-datatable-sort:hover .crisp-datatable-chevron { opacity: 0.6; }
684
696
  & .crisp-datatable-sort[data-sorted] .crisp-datatable-chevron { opacity: 1; color: var(--crisp-fg-primary); }
685
697
  /* sticky first column(s) + horizontal scroll shadow — RecordsTable's feel */
686
698
  & th[data-sticky], & td[data-sticky] { position: sticky; z-index: 1; background: var(--crisp-bg-surface); }
687
- & th[data-sticky] { z-index: 3; }
699
+ /* `thead th[data-sticky]`, not a bare `th[data-sticky]` (crisp#848, same
700
+ bare-`th` family as #829/#833/#835): this z-index:3 was written for
701
+ the HEADER's own sticky corner cell (sticky column x sticky header), meant to win over everything else. Unscoped, it also matched the primary column's BODY cell -- a real `<th scope="row" data-sticky>`
702
+ since #779 -- giving every scrolled body row's own sticky cell a HIGHER z-index than the sticky FOOTER's (2), so it painted over the
703
+ footer instead of the footer showing through. Confirmed live on a
704
+ real bounded-height, 25-row table (GRC's Risk register): scrolled partway, `elementFromPoint` at the footer's own on-screen cell
705
+ resolved to a body row's `<th>`, not the footer's `<td>`, and that
706
+ `<th>`'s computed z-index read 3. Scoped to `thead`, a body row's
707
+ own sticky `<th>` now falls back to the base rule above (z-index 1,
708
+ correct -- the same as a plain sticky `<td>`), and the footer's own explicit z-index below is unaffected either way. */
709
+ & thead th[data-sticky] { z-index: 3; }
688
710
  /* #554: a footer sticky-column cell sits in the bottom-sticky row (table.recipe.ts's
689
711
  `tfoot td { z-index: 2 }`), which `td[data-sticky]`'s own higher-specificity `z-index: 1` would otherwise undercut -- keep it level with the row it's in. */
690
712
  & tfoot td[data-sticky] { z-index: 2; }
@@ -733,68 +755,66 @@
733
755
  & .crisp-datatable-refoption-avatar { flex-shrink: 0; }
734
756
  & .crisp-datatable-refoption--create { color: var(--crisp-fg-muted); }
735
757
  & .crisp-datatable-empty { padding: var(--crisp-space-8) var(--crisp-space-3); text-align: center; color: var(--crisp-fg-muted); font-size: var(--crisp-text-lg); }
736
- /* #579: click-to-expand overlay for a truncated cell -- a read-only,
737
- full-value card, settled live as click (not Attio's usual hover-expand) and measured position: absolute, unlike this file's
738
- floating chrome (Menu/Select popovers) which portals and escapes the
739
- scroll container. Deliberately NOT the edit-error pattern above
740
- (grow the row, block-level, never clipped): a virtualized grid
741
- assumes a fixed row height for its scroll math (owned by the grid
742
- core, not this cell), so growing a row here would fight it. Anchored
743
- to the SAME column width the cell itself renders at (measured:
744
- Attio's own overlay came out only slightly wider than the triggering cell's clientWidth -- the overshoot is this padding),
745
- wrapping onto as many lines as the value needs; it CAN be clipped by
746
- `.crisp-table-scroll`'s own `overflow: auto` if it grows past the visible viewport, same as the edit-error comment above already notes for any position:absolute escape -- unmeasured against Attio for this exact case, flagged rather than guessed. */
758
+ /* #826 -- the full-body loading state (a filter/sort re-query, or a
759
+ fresh page boot), measured live on Attio's Companies grid on both triggers: icon+text centred in the row-body area, 10px gap, 14px/500 weight/20px line-height, both icon and text in the SAME muted rgba(0,0,0,0.63) -- the same color-mix figure this file already uses for other muted text (e.g. -phone-dial). Distinct from the cold in-place row load (blank, no indicator) and the warm-navigation per-cell shimmer (#599) -- neither of those swaps the whole body. */
760
+ & .crisp-datatable-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: var(--crisp-space-8) var(--crisp-space-3); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); line-height: 20px; }
761
+ & .crisp-datatable-loading .crisp-spinner { border-top-color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
762
+ /* #579: click-to-expand overlay for a truncated cell -- a read-only, full-value card, settled live as click (not Attio's usual
763
+ hover-expand) and measured position: absolute, unlike this file's floating chrome (Menu/Select popovers) which portals and escapes the scroll container. Deliberately NOT the edit-error pattern above (grow the row, block-level, never clipped): a virtualized grid assumes a fixed row height for its scroll math (owned by the grid core, not this cell), so growing a row here would fight it. Anchored to the SAME column width the cell itself renders at (measured: Attio's own overlay came out only slightly wider than the
764
+ triggering cell's clientWidth -- the overshoot is this padding), wrapping onto as many lines as the value needs; it CAN be clipped by `.crisp-table-scroll`'s own `overflow: auto` if it grows past the
765
+ visible viewport, same as the edit-error comment above already
766
+ notes for any position:absolute escape -- unmeasured against Attio
767
+ for this exact case, flagged rather than guessed. */
747
768
  & td[data-cell-expanded] { overflow: visible; z-index: 7; }
748
- & .crisp-datatable-cell-overlay { position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box; padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface); border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default; }
769
+ & .crisp-datatable-cell-overlay {
770
+ position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box;
771
+ padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface);
772
+ border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px;
773
+ font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium);
774
+ color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default;
775
+ }
749
776
  /* fixed layout so column widths (and resize) are exact — like RecordsTable */
750
777
  & table { table-layout: fixed; }
751
- /* read-only/computed column marker (#596) -- sits just inside the resize handle, same absolute-positioned-against-the-th approach the handle itself uses, since th has zero padding and the button/inner row fills the whole cell with no room left for a trailing sibling. */
778
+ /* read-only/computed column marker (#596) -- sits just inside the
779
+ resize handle, same absolute-positioned-against-the-th approach the
780
+ handle itself uses, since th has zero padding and the button/inner
781
+ row fills the whole cell with no room left for a trailing sibling. */
752
782
  & .crisp-datatable-readonly { position: absolute; top: 50%; inset-inline-end: 11px; transform: translateY(-50%); color: var(--crisp-fg-muted); pointer-events: none; z-index: 5; }
753
783
  /* column resize grip */
754
784
  & .crisp-datatable-resize { position: absolute; top: 0; inset-inline-end: -3px; width: 9px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
755
785
  & .crisp-datatable-resize::after { content: ""; position: absolute; top: 0; inset-inline-start: 3px; width: 2px; height: 100%; background: var(--crisp-bg-brand-solid); opacity: 0; transition: opacity .12s; }
756
786
  & .crisp-datatable-resize:hover::after, & .crisp-datatable-resize[data-resizing]::after { opacity: 1; }
757
- /* crisp/#731 -- column drag-to-reorder. Measured live against Attio's
758
- own grid (the issue's own comment): the dragged header keeps full opacity and the plain `pointer` cursor throughout (Attio draws no ghost and no "grabbing" cursor of its own), so this adds nothing to `[data-dragging]` itself -- the ONLY new paint is the drop-indicator line, a 3px bar in the same measured brand blue the resize handle's
759
- own hover state (above) already uses, positioned on whichever edge of
760
- the hovered header the pointer is closer to. */
787
+ /* crisp/#731 -- column drag-to-reorder. Measured live against Attio's own grid (the issue's own comment): the dragged header keeps full
788
+ opacity and the plain `pointer` cursor throughout (Attio draws no
789
+ ghost and no "grabbing" cursor of its own), so this adds nothing to
790
+ `[data-dragging]` itself -- the ONLY new paint is the drop-indicator
791
+ line, a 3px bar in the same measured brand blue the resize handle's own hover state (above) already uses, positioned on whichever edge of the hovered header the pointer is closer to. */
761
792
  & th[data-dragging] { cursor: pointer; }
762
- & th[data-drop-before]::before, & th[data-drop-after]::after {
763
- content: ""; position: absolute; top: 0; width: 3px; height: 100%;
764
- background: var(--crisp-bg-brand-solid); z-index: 6; pointer-events: none;
765
- }
793
+ & th[data-drop-before]::before, & th[data-drop-after]::after { content: ""; position: absolute; top: 0; width: 3px; height: 100%; background: var(--crisp-bg-brand-solid); z-index: 6; pointer-events: none; }
766
794
  & th[data-drop-before]::before { inset-inline-start: -1.5px; }
767
795
  & th[data-drop-after]::after { inset-inline-end: -1.5px; }
768
796
  /* typed cells — entity (avatar + name), colour-coded tags, numbers, dates */
769
797
  & .crisp-datatable-entity { display: flex; align-items: center; gap: var(--crisp-space-1-5); min-width: 0; color: var(--crisp-fg-primary); font-weight: var(--crisp-weight-medium); }
770
- /* crisp/#601 supersession follow-up -- the same flex-row shape
771
- .crisp-datatable-entity gives its own avatar+name+actions, but
772
- structural only (no entity-specific colour/weight): lets
773
- onOpenComments/onOpenPreview compose alongside ANY column's own content (a custom render, or a non-entity built-in type), not just type: "entity"'s own inline rendering. */
798
+ /* crisp/#601 supersession follow-up -- the same flex-row shape .crisp-datatable-entity gives its own avatar+name+actions, but structural only (no entity-specific colour/weight): lets onOpenComments/onOpenPreview compose alongside ANY column's own
799
+ content (a custom render, or a non-entity built-in type), not just
800
+ type: "entity"'s own inline rendering. */
774
801
  & .crisp-datatable-cell-actions-row { display: flex; align-items: center; gap: var(--crisp-space-1-5); min-width: 0; width: 100%; }
775
- /* crisp/#601, G-050: measured LIVE (getComputedStyle on the name text,
776
- plain hover vs rest) that Attio's underline is unconditional, not a hover reveal -- identical at rest and on hover: text-decoration-color is rgba(0,0,0,0.09), a 9% tint, not the name's own full-contrast text
777
- colour. The previous :hover-gated, full-contrast rule here was itself
778
- unmeasured and wrong in two ways at once. */
802
+ /* crisp/#601, G-050: measured LIVE (getComputedStyle on the name text, plain hover vs rest) that Attio's underline is unconditional, not a
803
+ hover reveal -- identical at rest and on hover: text-decoration-color
804
+ is rgba(0,0,0,0.09), a 9% tint, not the name's own full-contrast text colour. The previous :hover-gated, full-contrast rule here was itself unmeasured and wrong in two ways at once. */
779
805
  & .crisp-datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); }
780
806
  & button.crisp-datatable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
781
- /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary
782
- column, revealed on ROW hover (the issue's own title says "row
783
- hover", and a live check confirmed hovering well past the name -- not just the icons' own hit target -- still reveals them) or
784
- keyboard focus. Measured live: border-radius 6px, icon colour
785
- rgba(0,0,0,0.55) at rest, darkening to the full text colour with a
786
- rgba(0,0,0,0.04) background on the icon's OWN hover -- both expressed as color-mix against fgPrimary so they stay correct in dark mode instead of a literal black that would invert. */
807
+ /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary column, revealed on ROW hover (the issue's own title says "row
808
+ hover", and a live check confirmed hovering well past the name --
809
+ not just the icons' own hit target -- still reveals them) or keyboard focus. Measured live: border-radius 6px, icon colour rgba(0,0,0,0.55) at rest, darkening to the full text colour with a rgba(0,0,0,0.04) background on the icon's OWN hover -- both
810
+ expressed as color-mix against fgPrimary so they stay correct in
811
+ dark mode instead of a literal black that would invert. */
787
812
  & .crisp-datatable-entity-actions { display: flex; align-items: center; gap: var(--crisp-space-1-5); margin-inline-start: auto; flex-shrink: 0; opacity: 0; }
788
813
  & tr:hover .crisp-datatable-entity-actions, & .crisp-datatable-entity-actions:focus-within { opacity: 1; }
789
814
  & .crisp-datatable-entity-action { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; flex-shrink: 0; }
790
815
  & .crisp-datatable-entity-action:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
791
816
  & .crisp-datatable-avatar { width: var(--crisp-size-icon); height: var(--crisp-size-icon); border-radius: var(--crisp-radius-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: var(--crisp-weight-semibold); text-transform: uppercase; color: var(--crisp-fg-on-brand); background: var(--crisp-bg-brand-solid); }
792
- & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); }
793
- & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); }
794
- & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); }
795
- & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); }
796
- & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); }
797
- & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
817
+ & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); } & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); } & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); } & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); } & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); } & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
798
818
  & .crisp-datatable-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
799
819
  & .crisp-datatable-tags { display: flex; align-items: center; gap: var(--crisp-space-1); overflow: hidden; }
800
820
  & .crisp-datatable-tag { display: inline-flex; align-items: center; height: var(--crisp-size-chip); padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-chip); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); white-space: nowrap; background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); color: color-mix(in srgb, var(--crisp-fg-primary) 82%, transparent); }
@@ -807,22 +827,26 @@
807
827
  & .crisp-datatable-tag[data-tone="orange"] { background: color-mix(in srgb, var(--crisp-bg-orange) 16%, transparent); color: color-mix(in srgb, var(--crisp-bg-orange) 82%, var(--crisp-fg-primary)); }
808
828
  & .crisp-datatable-num { font-variant-numeric: tabular-nums; }
809
829
  & .crisp-datatable-muted { color: var(--crisp-fg-muted); }
810
- /* crisp#822 -- a date/datetime cell's danger/overdue tone: same token as
811
- TasksTable's own overdue due-date (crisp#462), plain text colour, no fill/weight change. */
830
+ /* crisp#822 -- a date/datetime cell's danger/overdue tone: same token as TasksTable's own overdue due-date (crisp#462), plain text colour, no
831
+ fill/weight change. */
812
832
  & .crisp-datatable-danger { color: var(--crisp-fg-danger); }
813
- /* url/email cell types (#654) -- same measured values as RecordsTable's
814
- own .crisp-recordstable-link, which this mirrors: no underline at
815
- rest, underline on hover, own-colour text rather than a browser-blue
816
- link. */
833
+ /* url/email cell types (#654) -- same measured values as RecordsTable's own .crisp-recordstable-link, which this mirrors: no underline at rest, underline on hover, own-colour text rather than a browser-blue link. */
817
834
  & .crisp-datatable-link { color: var(--crisp-fg-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
818
835
  & .crisp-datatable-link:hover { text-decoration: underline; }
819
- /* phone cell type/editor (#765) -- measured live: the dial-code prefix
820
- is a muted rgba(0,0,0,0.63) at 14px, matching every other muted-text
821
- value already measured elsewhere in this file. */
836
+ /* phone cell type/editor (#765) -- measured live: the dial-code prefix is a muted rgba(0,0,0,0.63) at 14px, matching every other muted-text value already measured elsewhere in this file. */
822
837
  & .crisp-datatable-phone { display: inline-flex; align-items: center; gap: var(--crisp-space-1); }
823
838
  & .crisp-datatable-phone-dial { color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
824
839
  & .crisp-datatable-phone-editor { display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); }
825
840
  & .crisp-datatable-phone-editor input { flex: 1; min-width: 0; }
841
+ /* country-picker option row (#842) -- confirmed live: Attio's own popover
842
+ is plain text, no flag anywhere (not the option row, not the closed
843
+ trigger), name opaque + dial code muted rgba(0,0,0,0.63) -- the SAME
844
+ color-mix figure as -phone-dial above. The internal name/dial gap
845
+ wasn't independently measured this pass (Attio's own two <div>s gave
846
+ no exact number); reused space["1"], the same gap -phone already uses
847
+ for its own flag/dial/digits row. */
848
+ & .crisp-datatable-country-option { display: flex; align-items: center; gap: var(--crisp-space-1); }
849
+ & .crisp-datatable-country-dial { color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
826
850
  /* multi-value phone (#816) -- confirmed live (a real custom "Multiple
827
851
  values" Phone Number attribute, and the built-in People "Phone
828
852
  numbers" field): the collapsed cell is a 4px-gap flex row of real
@@ -1867,8 +1891,16 @@
1867
1891
  & th, & td { position: relative; height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-3); border-bottom: 1px solid var(--crisp-border-subtle); border-inline-end: 1px solid var(--crisp-border-subtle); text-align: start; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1868
1892
  /* #554: sticky on the vertical axis, mirroring RecordsTable's own
1869
1893
  `.crisp-recordstable-th`. z-index 2 sits above a plain body cell (auto)
1870
- and below a sticky-column corner cell (DataTable's `th[data-sticky]`, z-index 3), so the corner always wins. */
1871
- & th { position: sticky; top: 0; z-index: 2; height: var(--crisp-size-tableHeader); background: var(--crisp-bg-surface); border-top: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); letter-spacing: -0.14px; color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); user-select: none; }
1894
+ and below a sticky-column corner cell (DataTable's `th[data-sticky]`, z-index 3), so the corner always wins. `thead th`, not a bare `th` (crisp#833/#835): DataTable's primary
1895
+ column renders its BODY cell as a real `<th scope="row">` (#779, for
1896
+ a11y), and a bare `th` here matched that one too -- every property in
1897
+ this rule leaked onto it: `height: tableHeader` (40px) stretched the
1898
+ whole body row to 40px instead of 36 (#833, confirmed live on the
1899
+ showcase, every td in the row equalized to the one th); `color:
1900
+ color-mix(...63%...)` muted the primary column's own text below every sibling `<td>`'s full-opacity color (#835, re-measured live against
1901
+ Attio's own header labels -- including a genuinely computed one, "Twitter follower count" -- all fully opaque `rgb(16,17,18)`, no muting at all, so this drops the color-mix entirely rather than narrowing it); `position:sticky; top:0` tried to stick a BODY row to the scroll container's top; the extra `border-top` doubled that
1902
+ row's own grid line. `thead th` simply never matches `tbody th[scope=row]` at all, so none of this reaches it; the base `& th, & td` rule above (36px, one border-bottom, full opacity via `& table`'s own color) applies to it like every other cell. */
1903
+ & thead th { position: sticky; top: 0; z-index: 2; height: var(--crisp-size-tableHeader); background: var(--crisp-bg-surface); border-top: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); letter-spacing: -0.14px; color: var(--crisp-fg-primary); user-select: none; }
1872
1904
  & td { color: var(--crisp-fg-primary); background: var(--crisp-bg-surface); }
1873
1905
  & th:last-child, & td:last-child { border-inline-end: none; }
1874
1906
  & tbody tr:last-child td { border-bottom: none; }
@@ -1887,7 +1919,7 @@
1887
1919
  }
1888
1920
  .crisp-table--surface_card {
1889
1921
  border: 1px solid var(--crisp-border-subtle); border-radius: var(--crisp-radius-xl); overflow: hidden;
1890
- & th { border-top: none; }
1922
+ & thead th { border-top: none; }
1891
1923
  & tfoot td { border-bottom: none; }
1892
1924
  }
1893
1925
  .crisp-table--surface_bleed {
@@ -1911,7 +1943,9 @@
1911
1943
  & .crisp-tabletoolbar-search svg { flex-shrink: 0; }
1912
1944
  & .crisp-tabletoolbar-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: var(--crisp-text-md); color: var(--crisp-fg-primary); width: 180px; }
1913
1945
  & .crisp-tabletoolbar-search input::placeholder { color: var(--crisp-fg-muted); }
1914
- & .crisp-tabletoolbar-tool { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-border-divider); color: var(--crisp-fg-primary); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
1946
+ /* crisp/#830: every trigger label here (Sort, Filter, View settings, Import/Export -- all compose this one shared .tool rule) read the "md" text size, 13px. Re-measured on Attio's own trigger LEAF node
1947
+ (the button root itself inherits Attio's own 10px rem base and is a red herring, the same trap the original "10px font" layout-audit finding fell into): every label leaf is 14px/500/lh20, the "lg" text size. */
1948
+ & .crisp-tabletoolbar-tool { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-border-divider); color: var(--crisp-fg-primary); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
1915
1949
  & .crisp-tabletoolbar-tool:hover { background: var(--crisp-bg-raised); }
1916
1950
  & .crisp-tabletoolbar-tool svg { flex-shrink: 0; color: var(--crisp-fg-muted); }
1917
1951
  /* crisp/#772: re-measured live on Sort with an actual sort applied -- an active trigger's own fill is white (bgSurface), the same as the
@@ -1930,8 +1964,17 @@
1930
1964
  an actual sort applied. color-mix (not the raw rgba Attio computes
1931
1965
  to) so both the border and the fill flip correctly in dark mode, the
1932
1966
  same reasoning --ghost above already uses. Only wired into
1933
- TableToolbar itself (tabletoolbar.tsx) this pass -- RecordsTable's own Sort/Filter triggers share this same chrome function but are deprecated, not touched here. */
1934
- & .crisp-tabletoolbar-tool--dashed { position: relative; box-shadow: none; background: color-mix(in srgb, var(--crisp-fg-primary) 2%, transparent); }
1967
+ TableToolbar itself (tabletoolbar.tsx) this pass -- RecordsTable's own Sort/Filter triggers share this same chrome function but are deprecated, not touched here. crisp/#844, correcting #831: the label colour was added here later, muting only the FILTER trigger (via a "--filter" modifier), on the assumption that was a Filter-specific tone distinct from Sort's.
1968
+ Re-measured live and that premise was wrong -- Sort's own resting label ("Sort", no condition set) is the exact SAME muted rgba(0,0,0,.5) as Filter's, not full-strength. (The rgba(0,0,0,.63) that looked like
1969
+ "Sort's colour" in an earlier pass is a different thing entirely: the
1970
+ "Sorted by" PREFIX word inside an ACTIVE sort chip, #788 -- a
1971
+ compound-label treatment that only exists once a sort is applied, not
1972
+ a resting-state colour.) --dashed is currently only ever applied to
1973
+ Sort's and Filter's own empty triggers (never View settings/
1974
+ Import-Export, which stay full-strength always, confirmed live), so
1975
+ the mute belongs on --dashed itself, not gated behind a Filter-only
1976
+ modifier. */
1977
+ & .crisp-tabletoolbar-tool--dashed { position: relative; box-shadow: none; background: color-mix(in srgb, var(--crisp-fg-primary) 2%, transparent); color: color-mix(in srgb, var(--crisp-fg-primary) 50%, transparent); }
1935
1978
  & .crisp-tabletoolbar-tool--dashed::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px dashed color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); pointer-events: none; }
1936
1979
  & .crisp-tabletoolbar-tool--dashed:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); }
1937
1980
  & .crisp-tabletoolbar-toolgroup { position: relative; display: inline-flex; }
@@ -1971,7 +2014,11 @@
1971
2014
  & .crisp-tabletoolbar-menu-sep { height: 1px; border: none; background: var(--crisp-border-subtle); margin: var(--crisp-space-0-5) 0; }
1972
2015
  /* #592: the Filter field picker's nested-scope header (back control +
1973
2016
  search, once drilled into a nestedColumns column) and a search
1974
- result's own breadcrumb row ("Team › Twitter follower count", surfaced by the SAME query matching a nested column). menu-back reuses the established 28px icon-only control pattern this file already uses twice (sort-remove, the kebab segment) rather than an independent measurement of Attio's own back arrow. The breadcrumb
2017
+ result's own breadcrumb row ("Team › Twitter follower count",
2018
+ surfaced by the SAME query matching a nested column). menu-back
2019
+ reuses the established 28px icon-only control pattern this file
2020
+ already uses twice (sort-remove, the kebab segment) rather than
2021
+ an independent measurement of Attio's own back arrow. The breadcrumb
1975
2022
  colours ARE measured live: the parent segment muted at the same
1976
2023
  exact color-mix 63% sort-learn above already uses, the
1977
2024
  separator chevron and leaf segment both full fgPrimary (the
@@ -2015,9 +2062,15 @@
2015
2062
  & .crisp-tabletoolbar-fcond[data-complete] .crisp-tabletoolbar-fcond-seg--val { background: var(--crisp-bg-surface); }
2016
2063
  & .crisp-tabletoolbar-fcond-seg--field { border-radius: var(--crisp-radius-md) 0 0 var(--crisp-radius-md); font-weight: var(--crisp-weight-medium); max-width: 200px; }
2017
2064
  & .crisp-tabletoolbar-fcond-seg--field svg { color: var(--crisp-fg-muted); }
2018
- /* #592: a nested pick's field segment ("Team › Twitter follower
2019
- count") — measured live: BOTH path segments the same colour (chip context only; the picker's own menu rows keep the parent muted, see
2020
- tabletoolbar.chrome.ts), each independently truncated. Attio's own layout gives the leaf segment priority (it stays fully readable longer, the parent truncates first) via a two-part min-content measurement this reproduces qualitatively with a flex-shrink differential rather than byte-for-byte (the exact px split Attio computes is content-length-dependent, not a fixed value) — not independently re-verified at other path-segment lengths. */
2065
+ /* #592: a nested pick's field segment ("Team › Twitter follower count") — measured live: BOTH path segments the same colour (chip
2066
+ context only; the picker's own menu rows keep the parent muted, see
2067
+ tabletoolbar.chrome.ts), each independently truncated. Attio's own
2068
+ layout gives the leaf segment priority (it stays fully readable
2069
+ longer, the parent truncates first) via a two-part min-content
2070
+ measurement this reproduces qualitatively with a flex-shrink
2071
+ differential rather than byte-for-byte (the exact px split Attio
2072
+ computes is content-length-dependent, not a fixed value) — not
2073
+ independently re-verified at other path-segment lengths. */
2021
2074
  & .crisp-tabletoolbar-fcond-path { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 178px; }
2022
2075
  & .crisp-tabletoolbar-fcond-path-seg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
2023
2076
  & .crisp-tabletoolbar-fcond-path-seg:first-child { flex: 0 1 auto; }
@@ -2027,8 +2080,10 @@
2027
2080
  & .crisp-tabletoolbar-fcond-seg--kebab { background: var(--crisp-bg-surface); justify-content: center; width: 28px; padding: 0; border-radius: 0 var(--crisp-radius-md) var(--crisp-radius-md) 0; color: var(--crisp-fg-muted); }
2028
2081
  & .crisp-tabletoolbar-fcond-seg--kebab:hover { color: var(--crisp-fg-primary); }
2029
2082
  /* #754: the sort row's own field trigger, replacing a plain Select
2030
- with the same nested-drill-down popover Filter's field picker already has — reuses Select's own already-measured trigger chrome
2031
- verbatim (its class is scoped under Select's own root class, so it can't be reused as a bare class name outside an actual Select tree;
2083
+ with the same nested-drill-down popover Filter's field picker
2084
+ already has — reuses Select's own already-measured trigger chrome
2085
+ verbatim (its class is scoped under Select's own root class, so it
2086
+ can't be reused as a bare class name outside an actual Select tree;
2032
2087
  these values are copied, not re-measured). */
2033
2088
  & .crisp-tabletoolbar-sort-field-picker { position: relative; display: inline-flex; flex: 1; min-width: 0; }
2034
2089
  & .crisp-tabletoolbar-sort-field-trigger { box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-menuRow); width: 100%; min-width: 0; margin: 0; padding: 0 var(--crisp-space-1-5) 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 7%, transparent); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); cursor: pointer; transition: background-color .12s ease, box-shadow .12s ease; }