Add title tooltip and subText support to data-table cells - #91
Open
felippe-ch wants to merge 3 commits into
Open
Add title tooltip and subText support to data-table cells#91felippe-ch wants to merge 3 commits into
felippe-ch wants to merge 3 commits into
Conversation
Extend the Cell interface with `title` and `subText` fields: - `title` renders as a tooltip (title attribute) on the datetime, zn-style, link, chip, and icon cell templates - `subText` renders muted secondary text below the cell content, styled via new .table__cell--subtext Refactor cell rendering to compose `content` progressively instead of early returns, so title, subText, copyable, and hover layers combine correctly. Add tests covering subText output and title tooltips on the link and styled cell paths. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
felippe-ch
force-pushed
the
data-table-cell-title-and-subtext
branch
from
July 28, 2026 09:48
b46bf50 to
0917895
Compare
Jonezzyboy
requested changes
Jul 28, 2026
Jonezzyboy
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new per-cell options to
zn-data-table:title— sets a native tooltip (titleattribute) on the cell content. Applied across the datetime,zn-style, link (<a>), chip, and icon templates.subText— renders muted secondary text below the main cell content, styled via the new.table__cell--subtextclass.Changes
Cellinterface with optionaltitleandsubTextfields.renderCellto build upcontentprogressively rather than returning early, sotitle,subText,copyable, andhoverContentcan layer together.hoverContentblock to wrap the composed content (including any icon)..table__cell--subtextstyling.Testing
Added 4 unit tests to
data-table.test.ts(all passing on Chromium + Webkit):subTextrenders as muted secondary texttitleapplies as a tooltip on link cellstitleapplies as a tooltip on styled cellstitleattribute is omitted when no title is provided🤖 Generated with Claude Code