Repository navigation
feat(ui)!: release 7.0.0 with avatar sizes that match the controls - #253
Conversation
4b4b280 to
1180428
Compare
tmccoy14
left a comment
There was a problem hiding this comment.
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 unlayeredmargin-blockrule. 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 andusage.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/docsstill 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 useTable, anddocs.cssalready imports the preflight inlayer(base). So widening the range to^6.0.0 || ^7.0.0and 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
CommandDialogitem, 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 newdata-slotattributes on Button, TitleBlock, EmptyTableState and SegmentedControls are additions, so they'd read better under an "Added" heading.control-row-overhangis listed under both Breaking and Removed.avatar.mdx:41,47: the first Image and Fallback demos now use the defaultlinesize, so the page opens on a 24px avatar showing just "R".size="md"on those twoAvatarDemos would show the component better.Avatarnow hasshrink-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 beforecomponents" warning thatusage.mdxnow has.
Generated by Claude Code
Generated by Claude Code
| :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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
1180428 to
90f7ec5
Compare
|
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 |
captjt
left a comment
There was a problem hiding this comment.
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-buttonso 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 onCHANGELOG.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
TruncatedDescriptionis still pulled in a cell, so its "Show more" link touches the text above, and the skill's Table guidance never mentionsmy-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:
equality/packages/ui/CHANGELOG.md
Lines 31 to 32 in 90f7ec5
- The CommandDialog icon shrink from 20 to 16 is a side change that appears only in the changelog, not the description:
equality/packages/ui/CHANGELOG.md
Line 50 in 90f7ec5
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):
- Padding moves from table rows to cells, which changes row heights in every Table across consumer apps:
equality/packages/ui/src/components/table/table-components.module.css
Lines 94 to 112 in 90f7ec5
- 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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 114 to 135 in 90f7ec5
- 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:
equality/packages/docs/package.json
Line 121 in 90f7ec5
- 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:
equality/packages/ui/package.json
Line 10 in 90f7ec5
- 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
- Most breakage is silent and visual. A renamed avatar size typechecks and draws at a different height, and an unlayered reset zeroes cell padding with no warning. Only control-row-overhang fails the build.
- App margin utilities on cell buttons are dropped with no warning:
- CI runs lint, format, build and unit tests only. There's no visual regression check to catch row-height or overlap changes in consumer layouts: https://github.com/eqtylab/equality/blob/90f7ec5258245136e420a48f5df194e622c01b68/.github/workflows/code-quality.yaml
90f7ec5 to
1a1a14b
Compare
|
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 |
captjt
left a comment
There was a problem hiding this comment.
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, wheretruncateclips it; setting--table-cell-paddinginstead works; details in the inline comment onCHANGELOG.md:55. - The changelog says a default
IconButtonmakes 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 onCHANGELOG.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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 139 to 175 in 1a1a14b
- Removing the dialog's
[cmdk-input-wrapper] svgsize also shrinks the CommandDialog search icon from 20 to 16, which the changelog doesn't mention. It only covers item icons:equality/packages/ui/CHANGELOG.md
Lines 56 to 57 in 1a1a14b
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):
- 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:
equality/packages/ui/CHANGELOG.md
Lines 46 to 51 in 1a1a14b
- The pull overrides app margin utilities on cell buttons, so a stack that an app builds itself overlaps unless every button takes my-0!:
equality/packages/ui/src/components/table/table-components.module.css
Lines 140 to 179 in 1a1a14b
- 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:
equality/packages/docs/package.json
Line 121 in 1a1a14b
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:
equality/packages/ui/tests/table-pull.test.tsx
Lines 41 to 73 in 1a1a14b
- 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:
equality/packages/ui/package.json
Line 10 in 1a1a14b
- 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
- 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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 176 to 178 in 1a1a14b
- CI runs only lint, format, build and unit tests, with no visual regression check to catch row-height or overlap changes in consumer layouts: https://github.com/eqtylab/equality/blob/1a1a14bf70db3525f75ca5492e1b66473f5457dd/.github/workflows/code-quality.yaml
captjt
left a comment
There was a problem hiding this comment.
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'scalc()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-offsetalready is, fixes it; details in the inline comment ontable-components.module.css:93.- The changelog's row heights leave out an
mdIconButton and a comfortableSelect, 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 onCHANGELOG.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-paddingvariable, which this round added as API and which only the changelog and Table page name:equality/packages/ui/CHANGELOG.md
Lines 44 to 45 in 24e90a9
- 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:equality/packages/ui/CHANGELOG.md
Lines 31 to 33 in 24e90a9
- A drive-by test change makes the global theme guard skip the whole utilities layer, and neither the description nor the changelog mentions it:
equality/packages/ui/tests/theme-css.test.ts
Lines 48 to 52 in 24e90a9
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):
- 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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 193 to 238 in 24e90a9
- 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-paddingcan push a button out of the cell, and the skill that agents in other repos read never mentions the variable: - Merge order matters: the description requires #252 first, and @eqtylab/docs still declares a peer of @eqtylab/equality ^6.0.0 until #254 lands:
equality/packages/docs/package.json
Line 121 in 24e90a9
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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 122 to 190 in 24e90a9
- 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:
equality/packages/ui/package.json
Line 10 in 24e90a9
- Consumers who rename avatar sizes, remove control-row-overhang, switch to data-slot="icon-button", re-layer their resets and adopt
--eq-table-cell-paddingwould 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:
equality/packages/ui/src/components/table/table-components.module.css
Lines 233 to 237 in 24e90a9
- The global theme guard now skips the whole utilities layer, so a theme-variable read that lands there would no longer be caught:
equality/packages/ui/tests/theme-css.test.ts
Lines 49 to 51 in 24e90a9
- 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
24e90a9 to
cf5426c
Compare
cf5426c to
f2b6a46
Compare
…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>
…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>
f2b6a46 to
1757f79
Compare
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
lgmeans 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:
xs24,sm28,md36,lg44, withxl52 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-overhanggoes. 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 anmdAvatar, 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-overhangfails to build until it removes it.data-avataris gone, anddata-icon-buttonbecomesdata-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 beforecomponents, or table cells lose their padding.Evidence
pnpm build,pnpm test, lint and format pass.Not covered
Rare defects found in review go to a 7.0.1 patch: a
0as title or description renders loose, CardContentHeader hides a labelled icon from screen readers, and initials with punctuation such asA.C.aren't shortened, so they clip in the three smallest avatars. A table header can't be right-aligned withtext-rightyet.🤖 Generated with Claude Code