Tooltip: Fix max width of tooltip (used in Product Editor) (#45358)
* Set max width on tooltip * Changelog
This commit is contained in:
parent
3658ac2d0e
commit
39306765d0
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Set maximum width on Tooltip.
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue