Table: omit opacity on IconButton in TableRow
Closes https://github.com/ClickHouse/click-ui/issues/565
Why
If a row is set to isDisabled or isDeleted, the opacity on the row is set to 0.5. This causes all children of the TableRow to be greyed out and makes it unclear that the TableRowCloseButton icon is actionable:
What
- Sets the
TableRowCloseButtoncolor to the default theme color - Removes opacity styling from
TableRow - Adds conditional opacity to
SelectData(checkbox) andTableData, while leavingopacity: 1on theTableRowCloseButton
I left the TableRowCloseButton icon to use type="ghost because the primary button type has a different styling onclick:
https://github.com/user-attachments/assets/bdd0e16c-a92c-4286-9890-26ca087347ac
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| click-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 12, 2025 9:09pm |
@gjones Design wise do we need to add a new token for the disabled state for these cases? Like the icon button and other form fields
@crisalbu do I understand correctly that if a row is disabled/removed, the pencil needs to be a muted color, and the x or + icon the same color as an enabled row would have? In this PR I only changed the styling of the + icon case, not the x icon case.
@gjones Design wise do we need to add a new token for the disabled state for these cases? Like the icon button and other form fields
@vineethasok are you thinking something like click.table.row.color.text.disabled?