-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip support for truncated cells #857
Comments
## 🤨 Rationale See #857 We want a tooltip on hover that shows the full text of a table cell. This allows the user to see the full value even when it is truncated in the cell. ## 👩💻 Implementation Every table column type has to implement this themselves, so I've implemented it for the text column. In the cell template, I set `title` to the same expression used for the cell value. If the value is null/undefined, the title is the placeholder text. ## 🧪 Testing Added unit tests for the value and placeholder cases. ## ✅ Checklist - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
This was largely implemented in the PR linked above but I think one piece is missing: tooltips for truncated header text. We thought about including this in another PR but I don't see it in the code or the product. |
The change to provide tooltips for truncated header text was reverted in that dev branch before the branch was merged. Meyer had to revert it because of some issue he was dealing with, but now it seems like it can be re-applied. I believe he is going to submit it. |
## 🤨 Rationale Fixes #857 Specifically, finishes the remaining work of adding a tooltip to header when text is ellipsized. ## 👩💻 Implementation Updated the column template and base class. Follows established pattern. ## 🧪 Testing Added three new automated tests. ## ✅ Checklist - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
😯 Problem to Solve
If a table cell (or table header cell) is too small to display the contents, it should be truncated. They user should be able to access the full content via a tooltip.
💁 Proposed Solution
🤔 Open Questions
Are there any things to make sure we address for accessibility...alt text for truncated content?
Depends on:
The text was updated successfully, but these errors were encountered: