Tooltip: Fix max width of tooltip (used in Product Editor) (#45358)

* Set max width on tooltip

* Changelog
This commit is contained in:
Matt Sherman 2024-03-11 11:04:54 -04:00 committed by GitHub
parent 3658ac2d0e
commit 39306765d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Set maximum width on Tooltip.

View File

@ -9,7 +9,12 @@
&__text .components-popover__content {
font-size: $default-font-size;
padding: $gap;
width: max-content;
/* Allow tooltip to be wider than the default of `fit-content`
* from the Popover component, but limit it to a reasonable
* maximum width.
*/
width: auto;
max-width: 300px;
}
&__text {