feat(Popper): add width props, remove popperMatchesTriggerWidth#8724
feat(Popper): add width props, remove popperMatchesTriggerWidth#8724tlabaj merged 13 commits intopatternfly:v5from
Conversation
|
Codemod: patternfly/pf-codemods#286 |
|
Preview: https://patternfly-react-pr-8724.surge.sh A11y report: https://patternfly-react-pr-8724-a11y.surge.sh |
4477ecc to
e97ce0e
Compare
e71785d to
7136883
Compare
|
Removed several instances of Added |
There was a problem hiding this comment.
Noticing some glitchy text on truncated table header text with tooltips.
Mar-03-2023.15-51-03.mp4
Also anywhere we're setting menu widths, we shouldn't need to do that now, unless that's part of the thing we're aiming to show in the example/demo -
|
@mcoker The table tooltip issue you were seeing was resolved in another PR, now that this is rebased it should be fixed here once the build finishes. |
|
@nicolethoen I'm unsure why this PR is failing a timestamp test as it shouldn't be impacted by these changes. Any thoughts? |
Another PR was merges that is now causing this issue. I put up a PR to revert it. |
tlabaj
left a comment
There was a problem hiding this comment.
Katie. once you rebase this PR the timestamp test issue should be resolved.
tlabaj
left a comment
There was a problem hiding this comment.
Looks good. just one small suggestion.
tlabaj
left a comment
There was a problem hiding this comment.
Can you also remove the minWidth on the DropdownNext kebab example. It should no longer be needed.
I am actually wondering if we need the minWidth prop anymore. It was specifically added for the kebab use case. Menu does not expose a minWidth prop.
cc @mcoker
| import { css } from '@patternfly/react-styles'; | ||
| import { Menu, MenuContent, MenuProps } from '../../../components/Menu'; | ||
| import { Popper } from '../../../helpers/Popper/Popper'; | ||
| import { Popper, PopperProps } from '../../../helpers/Popper/Popper'; |
There was a problem hiding this comment.
Do you think the Select still needs a minwidth prop?.
There was a problem hiding this comment.
Select (and Dropdown) still have access to the minWidth prop via popperProps that get spread directly to Popper.
There was a problem hiding this comment.
I was just wondering if it would just be spread with popperProps. For The next Dropdown it looks like minWidth was removed on line 26. We should probably be consistent wit the two components.
There was a problem hiding this comment.
Oh yeah forgot about that. I'll remove it from Select as well
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #8682
Adds
width,minWidth,maxWidthtoPopper.Sets the default of
minWidthtotrigger(popper will grow to trigger width at minimum but will still grow to fit content).Removes
popperMatchesTriggerWidth(minWidthnow covers this by default, and all width props can be set totriggerto match the trigger width).