Skip to content

feat(ui)!: release 7.0.0 with avatar sizes that match the controls - #253

Merged
matthewmr-eqty merged 33 commits into
mainfrom
release/equality-7.0.0-split
Nov 26, 2026
Merged

matthewmr-eqty merged 33 commits into
mainfrom
release/equality-7.0.0-split

Conversation

@matthewmr-eqty

@matthewmr-eqty matthewmr-eqty commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Do not merge until #252 merges.

Need

An avatar in a row should follow the row's text, and a named avatar size should mean the same height as the control of that name. Today a 24 avatar fits a 36 row only because Equality pulls it into the row's padding, which clips in a cell that hides overflow, and lg means 36 for an avatar but 44 for a button.

Problem

Avatar sizes followed their own ladder, and rows had no room for a 28 part. They held one only by pulling it into their padding with control-row-overhang, and that clips inside a cell that hides overflow.

Change

Avatar sizes take the control names: xs 24, sm 28, md 36, lg 44, with xl 52 for a profile or hero. The default, line, is as tall as the line it sits in, 20 in any row. Each table cell pads 8 (12 in a comfortable table), and a button anywhere in its cell reaches into that padding and stops 4 short of the row's lines: a small button keeps a row 36, a default one makes it 44, and comfortable rows stay 44 with a small or default button. control-row-overhang goes. Sort buttons and components that stack buttons aren't pulled, and they only stop the pull inside their own cell, so a table inside a collapsible keeps its rows. A person (a TitleBlock with an md Avatar, name over email) makes a 52 row at either density. Cell padding sits in a CSS layer, so an app's own padding on a cell still wins. The changelog maps every old avatar size to its new name.

Last of four Equality releases split from #247. This is the only breaking one: a renamed size still compiles but draws at its new height, and an app that uses control-row-overhang fails to build until it removes it. data-avatar is gone, and data-icon-button becomes data-slot="icon-button": an element of your own that set it, such as a row-menu placeholder, takes the new attribute, or its row is 44. Any CSS reset an app loads, such as normalize.css or Tailwind v3's preflight, has to sit in a layer before components, or table cells lose their padding.

Evidence

Not covered

Rare defects found in review go to a 7.0.1 patch: a 0 as title or description renders loose, CardContentHeader hides a labelled icon from screen readers, and initials with punctuation such as A.C. aren't shortened, so they clip in the three smallest avatars. A table header can't be right-aligned with text-right yet.

🤖 Generated with Claude Code

@tmccoy14 tmccoy14 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Matching avatar sizes to control sizes, with a default that follows the line it sits in, makes the system much easier to reason about. Moving table padding from rows to cells gets rid of control-row-overhang and the clipping it caused. I built the branch and ran pnpm build, pnpm test, lint and format; all pass. I also measured the built docs site: regular rows are 36, comfortable rows 44, a person row with a TitleBlock is 52, and a row with a default IconButton or CopyButton stays 36. The rendered heights match what the changelog promises.

Since this is the breaking release of the four, most of what I'd change is about what consumers are told rather than the code:

Before merge

  • The "Change" paragraph in the description is out of date. It says cells pad "8 around text, 4 around a button, so a small button fits a 36 row with nothing pulled in." Since df18bef, every cell pads 8 (12 in a comfortable table) and every button in a cell is pulled 4px into that padding by an unlayered margin-block rule. The changelog describes this correctly; the description should match it.
  • The description's list of breaking changes leaves out the CSS reset requirement. Any reset now has to sit in a layer before components, or table cells lose their padding. It's in the changelog and usage.mdx, but teams upgrading will read the PR first. Tailwind v3 apps and apps with an unlayered normalize.css would be hit.
  • packages/docs/package.json:121: @eqtylab/docs still declares the peer dependency "@eqtylab/equality": "^6.0.0". Once 7.0.0 ships, a docs site that upgrades gets ERESOLVE with npm, or a warning with pnpm. As far as I can tell the docs package doesn't use anything this release removes: its markdown tables use Table, and docs.css already imports the preflight in layer(base). So widening the range to ^6.0.0 || ^7.0.0 and shipping a docs patch, here or in a follow-up that merges with this, should be enough.
  • Two gaps in the changelog, commented inline: icons in a CommandDialog item, and margins on buttons in table cells.

Open question, commented inline: should the button pull keep reaching buttons at any depth in a cell?

Smaller suggestions

  • CHANGELOG.md "Removed": the new data-slot attributes on Button, TitleBlock, EmptyTableState and SegmentedControls are additions, so they'd read better under an "Added" heading. control-row-overhang is listed under both Breaking and Removed.
  • avatar.mdx:41,47: the first Image and Fallback demos now use the default line size, so the page opens on a 24px avatar showing just "R". size="md" on those two AvatarDemos would show the component better.
  • Avatar now has shrink-0, so it no longer shrinks inside a flex row. That's an improvement, but it changes behaviour, so a line under Changed would help.
  • packages/skills/equality-design-system/references/setup.md: agents in other repos read this file. It could carry the same "any other CSS reset goes in a layer before components" warning that usage.mdx now has.

Generated by Claude Code


Generated by Claude Code

Comment thread packages/ui/CHANGELOG.md Resolved
Comment thread packages/ui/CHANGELOG.md Resolved
Comment on lines +115 to +130
:is(.table-cell, .table-head)
:is(
button,
[role='button'],
[data-slot='button'],
[data-slot='icon-button'],
[data-slot='title-block'][data-size='sm']
):not(
[role='switch'],
[role='checkbox'],
[role='radio'],
[data-slot='title-block'] *,
[data-slot='empty-table-state'] *,
[data-slot='segmented-controls'] *
) {
margin-block: calc((var(--eq-type-body-line-height) - var(--eq-control-sm-height)) / 2);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see this went back and forth: 9a7e369 limited the pull to buttons a cell holds itself, then df18bef and d2fb94b made it any depth on purpose, to handle tooltip and flex wrappers. With an exclusion list, though, every composite placed in a cell gets −4px top and bottom on each of its buttons, except TitleBlock, EmptyTableState and SegmentedControls. That includes pagination, accordion or collapsible triggers, a vertical button group, and the buttons in an expanded detail panel, and stacked buttons then overlap. I haven't rendered these cases; a Pagination or a vertical stack of Buttons in a TableCell would confirm it. Is the exclusion list the intended long-term design, or would a general opt-out hook (something like [data-table-pull="off"] * in the :not()) be better, so apps don't need my-0! on each button?


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exclusion list is the design. A table cell is mostly one line of actions, so pulling any button at any depth keeps tooltip and flex wrappers at 36. An opt-out attribute would be a new public API for a rare case. You were right about the damage, though. Rendered in a cell, Pagination, CodeBlock, an open collapsible and tabs all moved, so they're excluded now and match their placement outside a table. What's left is a stack an app builds itself, and a button above a panel it opens. Both take my-0!, which the Table docs now show.

@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.0.0-split branch from 1180428 to 90f7ec5 Compare November 25, 2026 20:09
@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

Thanks. All of it is in this push. The description now matches the padding rule and lists the CSS-reset requirement under breaking changes. The changelog has the margin and CommandDialog lines, the data-slot attributes under Added, control-row-overhang once, and Avatar's shrink-0 under Changed. The Avatar demos open at md, and the skill's setup.md has the reset warning. The docs peer is widened in #254, which merges straight after this.

@matthewmr-eqty
matthewmr-eqty marked this pull request as ready for review November 25, 2026 20:21

@captjt captjt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are needed before merge: the button pull's exclusions match components outside the cell, so a table placed inside a collapsible, CodeBlock, TitleBlock, Pagination or empty state loses the pull and its button rows grow from 36 to 44. Guardian Studio's policy monitor has one.

Blocking

  • The pull's exclusions match any ancestor, even outside the cell, so a table inside a collapsible or another excluded component draws 44 rows instead of 36; details in the inline comment on table-components.module.css:133.

Non-blocking

  • Apps that mark their own element data-icon-button so a table cell pulls it in get taller rows on 7.0.0. Studio's row-menu placeholders do, so its loading rows jump from 44 to 36 when data arrives. This belongs under Breaking; details in the inline comment on CHANGELOG.md:59.
  • Comfortable rows and headers holding a Switch or a SegmentedControls are 8 taller than on 6.5.0, and the changelog doesn't say so; details in the inline comment on CHANGELOG.md:47.
  • +1 to tmccoy14's point on the pull's exclusion list: two gaps remain: Equality's own TruncatedDescription is still pulled in a cell, so its "Show more" link touches the text above, and the skill's Table guidance never mentions my-0!, so agents in other repos will build overlapping stacks.

At the head, build, lint, format and tests (391 ui, 226 docs) pass, and row heights were measured in Chromium on the built docs site against a 6.5.0 build.

Merge risk: high

Alignment: decent 👀

  • No Linear issue is linked, so alignment is judged against the description alone.
  • The description's breaking list leaves out that block margins (my-, mt-, mb-*) on buttons in table cells are now ignored unless written with !; only the changelog says so:
    - A block margin on a button in a table cell, such as `my-*`, `mt-*` or `mb-*`, is ignored unless
    written with `!`, such as `my-0!`.
  • The CommandDialog icon shrink from 20 to 16 is a side change that appears only in the changelog, not the description:
    - Icons in a `CommandDialog` item draw at 16, as in a `Command`; they were 20. An icon you size

Impact: large ⚠️

  • This is a breaking major release of the design system that every EQTY Lab app uses. Renamed Avatar sizes still compile but draw at new heights, and the default changes from 24 to line height (20):
    ({ className, size = 'line', shape = 'circle', ...props }, ref) => (
  • Padding moves from table rows to cells, which changes row heights in every Table across consumer apps:
    @layer components {
    :is(.table-cell, .table-head) {
    padding-block: calc((var(--eq-control-md-height) - var(--eq-type-body-line-height)) / 2);
    }
    .table--comfortable > .table-inner > * > .table-row > :is(.table-cell, .table-head) {
    padding-block: calc((var(--eq-control-lg-height) - var(--eq-type-body-line-height)) / 2);
    }
    .table--comfortable
    > .table-inner
    > *
    > .table-row
    > :is(.table-cell, .table-head):has([data-slot='title-block'][data-size='md']):not(
    :has(.table-inner [data-slot='title-block'][data-size='md'])
    ) {
    padding-block: calc((var(--eq-control-md-height) - var(--eq-type-body-line-height)) / 2);
    }
    }
  • An unlayered rule pulls any button at any depth in a cell 4px into the padding and overrides app margin utilities. Composites not on the exclusion list, such as app-built stacks, can overlap:
    /* Unlayered so an unlayered reset such as button { margin: 0 } can't cancel the pull */
    :is(.table-cell, .table-head)
    :is(
    button,
    [role='button'],
    [data-slot='button'],
    [data-slot='icon-button'],
    [data-slot='title-block'][data-size='sm']
    ):not(
    [role='switch'],
    [role='checkbox'],
    [role='radio'],
    [role='tab'],
    [data-slot='title-block'] *,
    [data-slot='empty-table-state'] *,
    [data-slot='segmented-controls'] *,
    [data-slot='pagination'] *,
    [data-slot='code-block'] *,
    [data-slot='motion-collapsible'] *
    ) {
    margin-block: calc((var(--eq-type-body-line-height) - var(--eq-control-sm-height)) / 2);
    }
  • Any CSS reset outside a layer silently removes all table cell padding, which hits Tailwind v3 and normalize.css apps.
  • @eqtylab/docs still declares a peer of @eqtylab/equality ^6.0.0. The fix is in a separate PR, #254, so merge order matters:
    "@eqtylab/equality": "^6.0.0",
  • The PR depends on #252 merging first, per the description.

Verification: decent 👀

  • Table and avatar tests check the compiled CSS text, not rendered layout. No test renders a table to measure row heights or check for overlapping buttons: https://github.com/eqtylab/equality/blob/90f7ec5258245136e420a48f5df194e622c01b68/packages/ui/tests/table-css.test.ts
  • The before-and-after evidence is an external page that isn't embedded in the PR and couldn't be opened for this assessment.
  • The last fix round, which excludes Pagination, CodeBlock, collapsible content and tabs from the button pull, came after the reviewer's measurements. Its only check is a selector-string test.
  • The reviewer's CHANGES_REQUESTED review still stands, and all three review threads are unresolved.
  • Known defects (nested TitleBlock styles, initials with punctuation clipping in small avatars, CardContentHeader icon hidden from screen readers) are deferred to 7.0.1.

Rollback cost: medium 👀

  • Once this reaches main, the version bump publishes @eqtylab/equality 7.0.0 to npm and pushes a v7.0.0 tag. A published version can't be reused, so walking it back takes a new release:
    "version": "7.0.0",
  • Consumers who migrate to the new avatar names, remove control-row-overhang, and re-layer their resets would have to redo that work if 7.0.0 were withdrawn.

Error detection: poor ⚠️


Claude Code (Opus 5.5) on behalf of @captjt · checked by Claude Code (Opus 5.5)

Comment thread packages/ui/CHANGELOG.md Resolved
Comment thread packages/ui/CHANGELOG.md Resolved
@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.0.0-split branch from 90f7ec5 to 1a1a14b Compare November 26, 2026 01:42
@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

Thanks captjt. The blocking fix and both changelog points are above. Also in this push: TruncatedDescription is excluded, so its "Show more" keeps its gap; the skill's Table guidance tells agents to give stacked buttons my-0!; and sort buttons aren't pulled, so a wrapped sort label sits like text. One more change: a button in a cell now stops 4 short of the row's lines at any size, so a small button keeps a row 36, a default one makes it 44, and comfortable rows stay 44 with a small or default button, as in 6.4.0.

@captjt captjt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are needed before merge: the fix for tables inside a collapsible turns the in-cell exclusions off in such a table, so Studio's policy summary card pulls its Clear Filters button 12px up onto the empty-state text. The data-icon-button point from the last review is fixed, and Switch and SegmentedControls rows now match 6.5.0.

Blocking

  • In a table inside a collapsible (or any excluded component), the buttons of an empty state, Pagination, SegmentedControls or TruncatedDescription in a cell are pulled again, which 6.5.0 never did, and Studio's policy summary card hits it; details in the inline comment on table-components.module.css:174.

Non-blocking

  • In a comfortable table, buttons stacked in one cell now overlap by 8px and a click can land on the wrong one, but the changelog's Breaking list doesn't warn; details in the inline comment on CHANGELOG.md:32.
  • An app's py-* on a cell doesn't move the pull, so a small enough padding pushes a button out of the cell, where truncate clips it; setting --table-cell-padding instead works; details in the inline comment on CHANGELOG.md:55.
  • The changelog says a default IconButton makes rows and headers 44, but it keeps them 36. It also never lists the cells whose button sits inside Pagination, CodeBlock, collapsible content or an empty state, which are 8 taller than on 6.5.0; details in the inline comment on CHANGELOG.md:51.

At the head, lint, format, build and tests (417 ui, 226 docs) pass; row heights were measured in Chrome on the built docs sites against a 6.5.0 build, and the suggested selector passes the ui tests plus three new nesting cases that fail at this head.

Merge risk: high

Alignment: decent 👀

  • No Linear issue is linked, so alignment is judged against the description alone.
  • The description says excluded components stop the pull only inside their own cell, but the selector's inner :not also lets the pull through when any excluded component wraps the table. A TruncatedDescription, Pagination or collapsible in a cell of a table that sits inside a collapsible is pulled again, and the rule's comment doesn't warn about it:
    /* The inner :not keeps exclusions to the button's own cell; without it a table inside a collapsible grows to 44 rows */
    :is(.table-cell, .table-head)
    :is(
    button,
    [role='button'],
    [data-slot='button'],
    [data-slot='icon-button'],
    [data-slot='title-block'][data-size='sm']
    ):not(
    [role='switch'],
    [role='checkbox'],
    [role='radio'],
    [role='tab'],
    [data-sort-button],
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    *:not(
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    :is(.table-cell, .table-head)
    *
    )
    ) {
  • Removing the dialog's [cmdk-input-wrapper] svg size also shrinks the CommandDialog search icon from 20 to 16, which the changelog doesn't mention. It only covers item icons:
    - Icons in a `CommandDialog` item draw at 16, as in a `Command`; they were 20. An icon you size
    yourself, such as with `size-4`, keeps its size.

Impact: large ⚠️

  • A breaking major release of the design system every EQTY Lab app uses. Renamed Avatar sizes still compile but draw at new heights, and the default changes from 24 to line height (20):
    ({ className, size = 'line', shape = 'circle', ...props }, ref) => (
  • Padding moves from table rows to cells, and an unlayered rule pulls every button at any depth in a cell into that padding, so row and header heights change in every consumer Table. For example, a default button in a regular header goes from 36 to 44:
    - Table cells pad 8 above and below, or 12 in a comfortable table. A button in a cell reaches
    into that padding and stops 4 short of the row's lines, and a cell that hides its overflow
    doesn't cut it off. A small button keeps a row 36, from 44. A default `Button`, `IconButton` or
    `Select` makes a regular row 44, from 52, and a default `Button` or `IconButton` makes a
    regular header 44, from 36. Comfortable rows and headers stay 44 with a small or default
    button. A large button makes a row 52, from 60 regular and 44 comfortable.
  • The pull overrides app margin utilities on cell buttons, so a stack that an app builds itself overlaps unless every button takes my-0!:
    :is(.table-cell, .table-head)
    :is(
    button,
    [role='button'],
    [data-slot='button'],
    [data-slot='icon-button'],
    [data-slot='title-block'][data-size='sm']
    ):not(
    [role='switch'],
    [role='checkbox'],
    [role='radio'],
    [role='tab'],
    [data-sort-button],
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    *:not(
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    :is(.table-cell, .table-head)
    *
    )
    ) {
    margin-block: calc(
    (var(--eq-control-sm-height) - var(--eq-type-body-line-height)) / 2 - var(--table-cell-padding)
    );
    }
  • Any CSS reset loaded outside a layer silently removes all table cell padding, which hits apps on Tailwind v3 preflight or an unlayered normalize.css.
  • Merge order matters. The description requires #252 first, and @eqtylab/docs still declares a peer of @eqtylab/equality ^6.0.0 until #254 lands:
    "@eqtylab/equality": "^6.0.0",

Verification: decent 👀

  • The Code Quality Checks run at this head is still in progress, so build, lint and tests aren't confirmed at 1a1a14b.
  • Table tests check compiled CSS text and selector matching in jsdom. No test renders a table to measure row heights or check for overlapping buttons: https://github.com/eqtylab/equality/blob/1a1a14bf70db3525f75ca5492e1b66473f5457dd/packages/ui/tests/table-pull.test.tsx
  • The last two fixes, 5e752ee (exclusions scoped to the cell) and cde8140 (pull leaves 4 at any padding, default-button rows now 44), changed row heights after both reviewers measured. Only the author's word and string tests cover them.
  • No test covers a table inside an excluded component whose cell also holds an excluded component, the case where the pull comes back:
    it('reaches a row action in a table inside a collapsible', () => {
    render(
    <MotionCollapsibleContent isOpen>
    {table(<IconButton name="Ellipsis" label="Row actions" />)}
    </MotionCollapsibleContent>
    );
    expect(screen.getByRole('button', { name: 'Row actions' }).matches(pull)).toBe(true);
    });
    it('reaches a row action in a table inside a collapsible inside another table', () => {
    render(
    table(
    <MotionCollapsibleContent isOpen>
    {table(<IconButton name="Ellipsis" label="Detail actions" />)}
    </MotionCollapsibleContent>
    )
    );
    expect(screen.getByRole('button', { name: 'Detail actions' }).matches(pull)).toBe(true);
    });
    it('leaves the buttons of a collapsible inside the cell where they sit', () => {
    render(
    table(
    <MotionCollapsibleContent isOpen>
    <Button>Approve</Button>
    </MotionCollapsibleContent>
    )
    );
    expect(screen.getByRole('button', { name: 'Approve' }).matches(pull)).toBe(false);
    });
  • The before-and-after evidence is an external page that isn't embedded in the PR. The Guardian Studio run doesn't say which head it used.
  • Known defects go to 7.0.1: initials with punctuation clip in the three smallest avatars, CardContentHeader hides a labelled icon from screen readers, and a 0 title renders loose.

Rollback cost: medium 👀

  • Once the stack reaches main, the version bump publishes @eqtylab/equality 7.0.0 to npm and tags it. A published version can't be reused, so walking it back takes a new release:
    "version": "7.0.0",
  • Consumers who rename avatar sizes, remove control-row-overhang, switch to data-slot="icon-button" and re-layer their resets would have to redo that work if 7.0.0 were withdrawn.

Error detection: poor ⚠️


Claude Code (Opus 5.5) on behalf of @captjt · checked by Claude Code (Opus 5.5)

Comment thread packages/ui/CHANGELOG.md Resolved
Comment thread packages/ui/CHANGELOG.md Resolved
Comment thread packages/ui/CHANGELOG.md Resolved

@captjt captjt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safe to merge: the exclusions now stop at the button's own cell, so tables inside a collapsible keep their pulled row actions and the empty states, descriptions and segmented controls in their cells sit where 6.5.0 had them, and the stacked-button and padding-variable points from the last review are fixed. Two non-blocking notes remain: a unitless 0 for --eq-table-cell-padding drops the pull, and the changelog's row heights miss an md IconButton, a comfortable Select and a larger button inside collapsible content.

Non-blocking

  • [--eq-table-cell-padding:0] makes the pull's calc() invalid, so a default or large button sits right on the row's lines and a truncating cell clips its focus ring; registering the property as a length, as --eq-nav-offset already is, fixes it; details in the inline comment on table-components.module.css:93.
  • The changelog's row heights leave out an md IconButton and a comfortable Select, and say comfortable rows stay 44 with a default button, though a default Button inside a collapsible in a cell now makes them 52; details in the inline comment on CHANGELOG.md:55.

At the head, build, lint, format and tests (421 ui, 226 docs) pass; row heights measured in Chrome on the built docs sites match 6.5.0 for the last review's cases, and the suggested @property builds and passes the ui tests.

Merge risk: high

Alignment: decent 👀

  • No Linear issue is linked, so alignment is judged against the description alone.
  • The description doesn't mention the new public --eq-table-cell-padding variable, which this round added as API and which only the changelog and Table page name:
    - `--eq-table-cell-padding` sets a table cell's padding above and below. Set it on a cell, such as
    `[--eq-table-cell-padding:…]`, not `py-*`, so a button in the cell stays 4 from the row's lines.
  • The description's breaking list leaves out that block margins on cell buttons are ignored and that stacked buttons in a cell touch or overlap without my-0!; only the changelog says so:
    - A block margin on a button in a table cell, such as `my-*`, `mt-*` or `mb-*`, is ignored unless
    written with `!`, such as `my-0!`. Buttons you stack in one cell, or a row of them that wraps,
    close up by 8, or 16 in a comfortable table, so they touch or overlap: give each `my-0!`.
  • A drive-by test change makes the global theme guard skip the whole utilities layer, and neither the description nor the changelog mentions it:
    it('reads no theme variable in its decisions, since a consumer build never defines them', () => {
    // Skips the utilities layer: Tailwind fills it from text it scans, so an --eq- example in the changelog would fail this
    const reads = rulesDeclaring(global, '--eq-[\\w-]+')
    .filter((r) => !r.selector.startsWith('@layer utilities'))
    .flatMap((r) => r.body.match(/var\(--(spacing|text-[\w-]+)\)/g) ?? []);

Impact: large ⚠️

  • A breaking major release of the design system every EQTY Lab app uses. Renamed Avatar sizes still compile but draw at new heights, and the default drops from 24 to line height (20):
    const Avatar = React.forwardRef<React.ElementRef<typeof AvatarPrimitive.Root>, AvatarProps>(
  • Padding moves from table rows to cells, and an unlayered rule pulls every button at any depth in a cell into that padding, so row and header heights change in consumer tables and app block margins on cell buttons are overridden:
    /* Unlayered so an unlayered reset such as button { margin: 0 } can't cancel the pull */
    /* Reads --eq-table-cell-padding, so a cell rule that sets padding-block without it leaves a button 4 from the wrong line */
    /* Both sides start at a cell; drop either and a component wrapped around the table turns the pull or its exclusions off */
    :is(.table-cell, .table-head)
    :is(
    button,
    [role='button'],
    [data-slot='button'],
    [data-slot='icon-button'],
    [data-slot='title-block'][data-size='sm']
    ):not(
    [role='switch'],
    [role='checkbox'],
    [role='radio'],
    [role='tab'],
    [data-sort-button],
    :is(.table-cell, .table-head)
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    *:not(
    :is(.table-cell, .table-head)
    :is(
    [data-slot='title-block'],
    [data-slot='empty-table-state'],
    [data-slot='segmented-controls'],
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='truncated-description']
    )
    :is(.table-cell, .table-head)
    *
    )
    ) {
    margin-block: calc(
    (var(--eq-control-sm-height) - var(--eq-type-body-line-height)) / 2 -
    var(--eq-table-cell-padding)
    );
    }
  • Any CSS reset loaded outside a layer silently removes all table cell padding, which hits apps on Tailwind v3 preflight or an unlayered normalize.css.
  • Apps that set py-* on a cell instead of --eq-table-cell-padding can push a button out of the cell, and the skill that agents in other repos read never mentions the variable:
    - Table: rows draw a thin line between them. Don't add an `nth-child` fill. A button in a cell reaches into the cell's padding, so buttons you stack in one cell, or a row of them that wraps, overlap: give each `my-0!`.
  • Merge order matters: the description requires #252 first, and @eqtylab/docs still declares a peer of @eqtylab/equality ^6.0.0 until #254 lands:
    "@eqtylab/equality": "^6.0.0",

Verification: decent 👀

  • No CI results were available for this head, so build, lint and tests aren't confirmed at 24e90a9.
  • Table tests check compiled CSS text and selector matching in jsdom; no test renders a table to measure row heights or check stacked buttons for overlap: https://github.com/eqtylab/equality/blob/24e90a92d6880209adb32482e1d411ef9d315cae/packages/ui/tests/table-pull.test.tsx
  • This round's 6.5.0-height padding for cells holding Pagination, CodeBlock, collapsible, empty-state or TruncatedDescription buttons, and the variable rename, are backed only by the author's measurements and string tests:
    .table-header
    > .table-row
    > .table-head:has(
    [role='switch'],
    [data-slot='segmented-controls'],
    :is(
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='empty-table-state'],
    [data-slot='truncated-description']
    )
    :is(button, [role='button'])
    ):not(
    :has(
    .table-inner
    :is(
    [role='switch'],
    [data-slot='segmented-controls'],
    :is(
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='empty-table-state'],
    [data-slot='truncated-description']
    )
    :is(button, [role='button'])
    )
    )
    ) {
    --eq-table-cell-padding: calc((var(--eq-control-md-height) - var(--eq-control-sm-height)) / 2);
    padding-block: var(--eq-table-cell-padding);
    }
    .table--comfortable
    > .table-inner
    > *
    > .table-row
    > :is(.table-cell, .table-head):has(
    [role='switch'],
    [data-slot='segmented-controls'],
    :is(
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='empty-table-state'],
    [data-slot='truncated-description']
    )
    :is(button, [role='button'])
    ):not(
    :has(
    .table-inner
    :is(
    [role='switch'],
    [data-slot='segmented-controls'],
    :is(
    [data-slot='pagination'],
    [data-slot='code-block'],
    [data-slot='motion-collapsible'],
    [data-slot='empty-table-state'],
    [data-slot='truncated-description']
    )
    :is(button, [role='button'])
    )
    )
    ) {
    --eq-table-cell-padding: calc((var(--eq-control-lg-height) - var(--eq-control-sm-height)) / 2);
    padding-block: var(--eq-table-cell-padding);
    }
  • A table nested two cells deep (cell, collapsible, table, cell, empty state) still escapes the exclusions, and neither a test nor the docs cover it.
  • The before-and-after evidence is an external page not embedded in the PR, and the Guardian Studio run doesn't say which head it used.
  • Known defects go to 7.0.1: initials with punctuation clip in the three smallest avatars, CardContentHeader hides a labelled icon from screen readers, and a 0 title renders loose.

Rollback cost: medium 👀

  • Once the stack reaches main, the version bump publishes @eqtylab/equality 7.0.0 to npm and tags it; a published version can't be reused, so walking it back takes a new release:
    "version": "7.0.0",
  • Consumers who rename avatar sizes, remove control-row-overhang, switch to data-slot="icon-button", re-layer their resets and adopt --eq-table-cell-padding would have to redo that work if 7.0.0 were withdrawn.

Error detection: poor ⚠️

  • Most breakage is silent and visual: a renamed avatar size typechecks and draws at another height, an unlayered reset zeroes cell padding, and a leftover data-icon-button makes rows 44. Only control-row-overhang fails the build.
  • App block margins on cell buttons are dropped with no warning, and stacked buttons can overlap so a click lands on the wrong one:
    ) {
    margin-block: calc(
    (var(--eq-control-sm-height) - var(--eq-type-body-line-height)) / 2 -
    var(--eq-table-cell-padding)
    );
  • The global theme guard now skips the whole utilities layer, so a theme-variable read that lands there would no longer be caught:
    // Skips the utilities layer: Tailwind fills it from text it scans, so an --eq- example in the changelog would fail this
    const reads = rulesDeclaring(global, '--eq-[\\w-]+')
    .filter((r) => !r.selector.startsWith('@layer utilities'))
  • CI runs only lint, format, build and unit tests, with no visual regression check for row-height or overlap changes: https://github.com/eqtylab/equality/blob/24e90a92d6880209adb32482e1d411ef9d315cae/.github/workflows/code-quality.yaml

Claude Code (Opus 5.5) on behalf of @captjt · checked by Claude Code (Opus 5.5)

Comment thread packages/ui/CHANGELOG.md Resolved
@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.0.0-split branch from 24e90a9 to cf5426c Compare November 26, 2026 03:10
@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.0.0-split branch from cf5426c to f2b6a46 Compare November 26, 2026 03:11
Base automatically changed from release/equality-6.5.0 to main November 26, 2026 03:11
matthewmr-eqty and others added 4 commits November 25, 2026 22:11
…slot

Need: an avatar should match the control beside it, and a row should hold one avatar, badge or row action without growing or pulling it into its padding.
Problem: avatar sizes followed their own ladder, rows fit a 28 part only by overhanging it, and a cell that hid overflow cut the overhang off.
Solution: Avatar sizes take the control names, with a line-high default and xl at 52; table, menu, select and command rows keep 4 above and below a 28 part; the overhang utility and the size attributes are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: people upgrading need to know which avatar size to use now and what a row holds.
Problem: the Avatar, Sheet, Table, Sizing and Title Block pages, the skill and the changelog still described 6.x avatar sizes and the row overhang.
Solution: the pages and skill take the new avatar names and the 28 row slot, Title Block shows avatar marks, and the changelog maps each old size to its new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: a row should fit a small button without pulling it into its padding, while wrapped text and search results keep room to breathe.
Problem: 7.0.0 gave every row 4 above and below so a 28 part fitted, which made wrapped rows, menu rows and search results look cramped.
Solution: a regular cell of text pads 8 and a cell holding a button pads 4, header cells pad as text; the row padding utility stays 8, so menu, select and command rows are as in 6.x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… row notes

Need: people building a members table need to know how to set a name over an email beside an avatar, and what 7.0.0 changes in rows.
Problem: the Table and Avatar pages had no pattern for a person with a subline, the Table demo cut initials to one letter, and the changelog still described 4 above and below.
Solution: a Title Block with an md Avatar mark on both pages and in the skill, full initials in the demo, and a changelog line that rows hold their parts at 36 without pulling them into the padding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matthewmr-eqty and others added 27 commits November 25, 2026 22:11
…y cells

Need: one rule should decide how every cell pads, so a header or row header can't drift from the body.
Problem: 7.0.0 carried 6.4.0's header-only padding rules beside its own per-cell rules, so a header cell holding a button had two rules to keep in step.
Solution: a header cell pads as text or as a button cell through the general rules, and the header-only copies go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…row is 36

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ride cell padding

Need: a person block with actions, an empty state with a button and an app's own py-* on a cell should all keep the height they had.
Problem: any button anywhere in a cell made it pad 4, so a person row with actions was 44 beside 52 rows and the empty state moved; and the new cell padding was unlayered, so it beat an app's padding utilities.
Solution: a cell pads 4 only for a button it holds directly or in a wrapper of buttons; cell padding sits in the components layer with the order declared first, so app utilities win and the preflight doesn't; dead py-0 resets go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ol row is 44

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s 52 at either density

Need: a person row should be the same height in a regular and a comfortable table.
Problem: a comfortable cell padded its TitleBlock 12, so a person row was 60 there and 52 in a regular table.
Solution: TitleBlock and its skeleton carry data-slot="title-block", and a cell holding one directly or in one wrapper pads 8 at either density.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ither density

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…padding

Need: a row with a row action, a copy button beside an ID or a tooltip-wrapped button should stay the height of a row of text, whatever markup holds the button.
Problem: detecting a button cell with :has() missed common markup (an ID and CopyButton in a flex wrapper, a tooltip span, Radix hidden inputs), and padded wrapped text with a direct button too tightly.
Solution: every cell pads for a line of text by density, and any button inside a cell reaches 4 into that padding, except a TitleBlock's actions and an EmptyTableState's own button; the hooks sit after the props so a parent can't replace them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…needs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… where they sit in a cell

Need: a small switch in a table row should sit where it did in 6.x, and a segmented control in a cell should keep its own layout.
Problem: the pull moved every button in a cell, so a small Switch rose 4 and a SegmentedControls' segments were pulled.
Solution: the pull skips switch, checkbox and radio roles and anything inside a SegmentedControls, which now carries data-slot="segmented-controls".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nted-controls hook

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k, and keep the pull unlayered

Need: a person row should be 52 however deep its block sits, a small title block should fit a 36 row, and an app's CSS reset shouldn't undo the pull.
Problem: the comfortable person rule matched only one wrapper deep and any block size, a small block grew its row to 44, and a layered pull lost to an unlayered button { margin: 0 }.
Solution: TitleBlock carries data-size; a comfortable cell holding a medium block at any depth, outside a nested table, pads 8; a small block pulls 4 like a button; the pull sits outside the layer while cell padding stays in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ons in a cell

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…out of the button pull

Need: apps that put an Equality component holding several buttons in a table cell.
Problem: the pull reached every button in a cell, so tabs sat 4 above their list, CodeBlock's header lost 8, a wrapped Pagination's lines touched and buttons in an open MotionCollapsibleContent closed in on its trigger.
Solution: tabs and the buttons inside Pagination, CodeBlock and MotionCollapsibleContent keep their own spacing; the three carry a data-slot hook the pull skips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…og icons and CSS resets

Need: teams upgrading to 7.0.0 read the changelog, Table docs and the setup skill to learn what their app must change.
Problem: the changelog missed ignored block margins on cell buttons, unsized CommandDialog icons and Avatar's shrink, filed new data-slot hooks under Removed, and the setup skill never said a reset must sit in a layer.
Solution: the changelog lists each change once under the right heading, the Table page shows my-0! on a stack of buttons, Avatar's first demos show a medium avatar and the setup skill carries the reset warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: apps that put a table inside a collapsible, such as Studio's policy monitor, and tables with switches or segmented controls.
Problem: an excluded component anywhere above a button stopped the pull, so a table inside a collapsible drew 44 rows; header and comfortable cells holding a switch or segmented control were 8 taller than in 6.5.0; TruncatedDescription's button touched its text in a cell.
Solution: an excluded component stops the pull only between the cell and the button; those switch and segmented-control cells pad as a small control again; TruncatedDescription joins the exclusions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… teach my-0! in the skill

Need: apps upgrading to 7.0.0, and agents building tables from the skill.
Problem: the changelog didn't say an app's own data-icon-button stops being pulled, called comfortable rows unchanged though a default Button now makes them 52, and the skill never mentioned my-0! for stacked buttons.
Solution: Breaking names data-slot="icon-button" as the replacement, Changed gives the button row heights, Added lists TruncatedDescription's hook, and the skill's Table line says to give stacked buttons my-0!.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: tables that keep their 6.x heights with a default button, and sortable headers whose labels wrap.
Problem: the pull was a fixed 4 into every cell, so a comfortable row or header with a default button grew to 52, and a wrapped sort label was pulled 4 closer to the line than wrapped text.
Solution: each cell rule names its padding and the pull leaves 4 of it, so a comfortable cell pulls 8; sort buttons aren't pulled; Button's size hook loses its warning, since no 7.0.0 rule reads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers choosing buttons for regular and comfortable tables.
Problem: the Density note said a default Button makes a comfortable row 52, which no longer holds.
Solution: the Table page says a default button makes a regular row 44, comfortable rows stay 44 with a small or default button, and a large one makes 52.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: tables inside a collapsible that hold an empty state, pagination, segmented controls or a long description, such as Studio's policy summary card.
Problem: an excluded component around the table matched the guard, so every exclusion inside that table switched off and the empty state's clear button was pulled 12 up onto its text.
Solution: an excluded component counts only when it sits in a cell with no other cell between it and the button; three new cases pin it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…0.0 row heights

Need: apps upgrading to 7.0.0 with stacked buttons or row actions in table cells.
Problem: Breaking didn't warn that stacked buttons close up, twice as far in comfortable tables, and Changed said a default IconButton makes rows 44 when it keeps them 36.
Solution: Breaking says stacked buttons close up by 8, or 16, and need my-0!; Changed gives the default IconButton's 36 and a large button's 52 header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…held-control cells at their 6.5.0 height

Need: apps that change a cell's padding, and tables whose cells hold Pagination, a CodeBlock, collapsible content, an empty state or a long description.
Problem: py-* moved the padding but not the pull, so a button could poke out of a cell and be clipped; and cells whose button the pull skips padded 12 comfortable and 8 in a header, 8 taller than 6.5.0.
Solution: the padding is the public --eq-table-cell-padding, which the pull reads, so a button stays 4 inside at any value; those cells pad 8 comfortable and 4 in a header, own cell only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers adjusting how much room a table cell leaves above and below.
Problem: py-* on a cell moves its padding but not where a button in it sits.
Solution: the Table page says to set --eq-table-cell-padding on the cell, with an example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s by the button's size

Need: apps that set a cell's padding to 0, and cells holding a default or large Button inside collapsible content.
Problem: a bare 0 made the pull's calc() invalid, so a button sat on the row's lines; and cells whose button the pull skips padded as for a small control, so a default or large Button there made comfortable rows and headers 52 or 60, from 44.
Solution: the variable is registered as a length; those cells pad by the held Button's size, as 6.5.0 did; the changelog adds the md IconButton and comfortable Select rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l-padding

Need: agents in other repos building tables from the skill.
Problem: the skill never mentioned the variable, so agents reach for py-* on a cell and push its buttons out.
Solution: the skill's Table line says to set [--eq-table-cell-padding:4px] on the TableCell, not py-*.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matthewmr-eqty
matthewmr-eqty force-pushed the release/equality-7.0.0-split branch from f2b6a46 to 1757f79 Compare November 26, 2026 03:11
@matthewmr-eqty
matthewmr-eqty merged commit ab6a10b into main Nov 26, 2026
1 check passed
@matthewmr-eqty
matthewmr-eqty deleted the release/equality-7.0.0-split branch November 26, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants