From d331ba53b97cbcac3d8e4fe9bb30076c7f3ccb87 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Sat, 6 Jun 2026 08:30:27 -0700 Subject: [PATCH] docs(ui): correct data-attribute hook names in README 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) --- packages/ui/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/README.md b/packages/ui/README.md index 0e9eb562..8e20fae5 100644 --- a/packages/ui/README.md +++ b/packages/ui/README.md @@ -51,7 +51,7 @@ The full token set lives in [`src/tokens.css`](./src/tokens.css). Override any t ### Data-attribute hooks -Pretable surfaces emit a stable set of data attributes on rendered DOM. The CSS files in this package target them; your custom styles can too. The full set lives in `grid.css` — common ones include `[data-pretable-cell]`, `[data-pretable-row]`, `[data-pretable-header]`, `[data-pretable-cell-focused]`, and `[data-pretable-cell-selected]`. Renaming or removing these attributes is a breaking change. +Pretable surfaces emit a stable set of data attributes on rendered DOM. The CSS files in this package target them; your custom styles can too. The full set lives in `grid.css` — common ones include `[data-pretable-cell]`, `[data-pretable-row]`, `[data-pretable-header]`, `[data-pretable-cell][data-focused="true"]`, `[data-pretable-cell][data-selected="true"]`, `[data-pretable-cell][data-pinned="left"|"right"]`, and `[data-pretable-cell][data-pretable-numeric="true"]`. Renaming or removing these attributes is a breaking change. ## JS API