-
Notifications
You must be signed in to change notification settings - Fork 4k
Popover with help and use_container_width is rendered correctly #10709
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
| <BaseButtonTooltip help={element.help}> | ||
| <BaseButtonTooltip | ||
| help={element.help} | ||
| containerWidth={element.useContainerWidth} |
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.
suggestion (non-blocking): I think it could be a good idea to mark containerWidth as a required prop in BaseButtonTooltip. The benefit is that we would get compiler-time checking for all locations in which BaseButtonTooltip is used.
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.
Added in st.page_link PR 👍🏼 - just need this PR merged before I can merge
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.
Great, thank you Maya for adding this.
## Describe your changes This fixes an issue where `use_container_width` is ignored if the `help` parameter is passed to `st.popover` by ensuring `element.useContainerWidth` is provided to `BaseButtonTooltip` as well as `BaseButton`. ## GitHub Issue Link (if applicable) Closes #10693 ## Testing Plan Adds some playwright tests similar to the existing `use_container_width` tests but including the help option. --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
Describe your changes
This fixes an issue where
use_container_widthis ignored if thehelpparameter is passed tost.popoverby ensuringelement.useContainerWidthis provided toBaseButtonTooltipas well asBaseButton.GitHub Issue Link (if applicable)
Closes #10693
Testing Plan
Adds some playwright tests similar to the existing
use_container_widthtests but including the help option.Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.