Skip to content

docs(ui): correct data-attribute hook names in README#161

Merged
blove merged 1 commit into
mainfrom
claude/reverent-ardinghelli-73d8ef
Jun 6, 2026
Merged

docs(ui): correct data-attribute hook names in README#161
blove merged 1 commit into
mainfrom
claude/reverent-ardinghelli-73d8ef

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Jun 6, 2026

What

The Data-attribute hooks section of packages/ui/README.md listed two attributes that do not exist in the rendered grid DOM:

  • [data-pretable-cell-focused]
  • [data-pretable-cell-selected]

Why

Per packages/ui/src/grid.css, focus/selection are expressed as value-attributes on the cell, not standalone attributes:

:where([data-pretable-cell][data-selected="true"]) { ... }  /* grid.css:99 */
:where([data-pretable-cell][data-focused="true"])  { ... }  /* grid.css:105 */

Consumers copying the README names into their own CSS would target selectors that never match.

Change

Replaced the incorrect names with the real hooks, and added the other cell value-attributes documented in grid.css for completeness:

  • [data-pretable-cell][data-focused="true"]
  • [data-pretable-cell][data-selected="true"]
  • [data-pretable-cell][data-pinned="left"|"right"]
  • [data-pretable-cell][data-pretable-numeric="true"]

Docs-only, no code change.

🤖 Generated with Claude Code

The "Data-attribute hooks" section listed `[data-pretable-cell-focused]`
and `[data-pretable-cell-selected]`, which do not exist in the rendered
DOM. Per grid.css the real hooks are value-attributes on the cell:
`[data-pretable-cell][data-focused="true"]` and `[data-selected="true"]`,
plus `[data-pinned="left"|"right"]` and `[data-pretable-numeric="true"]`.
Align the README so consumers targeting them with CSS aren't misled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pretable Ready Ready Preview, Comment Jun 6, 2026 3:31pm

@blove blove enabled auto-merge (squash) June 6, 2026 15:32
@blove blove merged commit d5475a5 into main Jun 6, 2026
13 checks passed
@blove blove deleted the claude/reverent-ardinghelli-73d8ef branch June 6, 2026 15:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2026

Vercel preview ready

Preview: https://pretable-9l9xfk831-cacheplane.vercel.app
Commit: d331ba53b97cbcac3d8e4fe9bb30076c7f3ccb87

Updated automatically by the deploy-preview job.

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.

1 participant