-
Notifications
You must be signed in to change notification settings - Fork 376
feat(Table): add tooltip for truncated Td, docs(Filter): add filter demos #8024
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
Conversation
|
Preview: https://patternfly-react-pr-8024.surge.sh A11y report: https://patternfly-react-pr-8024-a11y.surge.sh |
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a few comments below (one nit, one clarifying question, and a couple issues I noticed).
packages/react-core/src/demos/Filters/examples/FilterAttributeSearch.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/demos/Filters/examples/FilterAttributeSearch.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/demos/Filters/examples/FilterAttributeSearch.tsx
Outdated
Show resolved
Hide resolved
1cddb62 to
45f67c4
Compare
mcarrano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@kmcfaul looks great overall!! Only noticed one little bug in the last demo, where there should be a badge showing the number of selections - and it seems to work for the first attribute, but not for the second. As soon as you select anything from the second attribute, the badge disappears. Screen.Recording.2022-09-26.at.11.44.53.AM.mov |
wise-king-sullyman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than the badge bug in the faceted filter demo that was already mentioned, ready to approve once that's resolved.
…, update demos for bulk select focus
45f67c4 to
245d287
Compare
|
Fixed the faceted filter badge. @mmenestr @wise-king-sullyman Not sure why but the check being inline wasn't quite executing right (it was only looking at the first condition), probably a syntax thing. Moving the check above to a const lets it work properly. |
mmenestr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
mcoker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried adding tooltip="tooltip text" and tooltip={<div>tooltip text</div>} to cells and it didn't trigger a tooltip - should that work or is this something else?
Sortable cells seem to be triggering 2 tooltips.

And if a cell is sortable and has a help icon, when you mouse off the sort button and to the help button (but keep your mouse in the table cell), one of the cell tooltips stays open, then the help button tooltip shows.

packages/react-core/src/demos/Filters/examples/FilterAttributeSearch.tsx
Show resolved
Hide resolved
|
The tooltip prop is for specifying a custom tooltip when a tooltip is rendered (when there is the truncate modifier and the text length overflows). I don't think it forces the tooltip but I'm not sure. It should behave the same as the We may want to open a follow up for the extra tooltips as I'm not sure what's happening there at the moment. I added a tooltip to |
mcoker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Confirmed the double tooltip is a pre-existing issue. Here's an issue for that - https://github.com/patternfly/patternfly/issues/5136
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #7965
Adds remaining filter demos (attribute search, same select filter group, mixed select filter group, faceted filter).
Updates all filter demos to have the following:
Tds are truncated to maintain column widths while filteringWhile adding the last bullet I also noticed that no tooltip is added when Tds are truncated like Ths should I added that functionality as well.
Other updates in this PR:
Td: Addedtooltipprop, and when using the truncate modifier,Tdwill attempt to make a default tooltip likeThTh: Updated internalcanDefaultvariable name tocanMakeDefaultTooltip(matched inTdas well)MenuToggle: Added missing ref spread to split button variant of theMenuToggleMenu: added null check increateNavigableItemscallback that can throw a console error if the menu closes due to the extraKeys handler