tooltips
tooltips copied to clipboard
✨ Allow maxWidth to support `unset` and other keywords
Current behavior:
The maxWidth property only accepts numbers. I'm trying to use the tooltips to be more dynamic in size to fit the exact width of the text. I'd like to set this property as either none or unset. When I put those values in, it calculates the value to be either nonepx or unsetpx and the browser removes the min-width and max-width on the tooltip due it being an invalid style property.
Desired behavior:
Entering in a non-number value like none or unset would set the min-width and max-width styles to none or unset respectively.