Skip to content
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

✨ Allow maxWidth to support unset and other keywords #48

Open
colinkautz opened this issue Feb 8, 2025 · 0 comments
Open

✨ Allow maxWidth to support unset and other keywords #48

colinkautz opened this issue Feb 8, 2025 · 0 comments
Labels
Type: Feature A new feature or functionality

Comments

@colinkautz
Copy link

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.

@colinkautz colinkautz added the Type: Feature A new feature or functionality label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature A new feature or functionality
Projects
None yet
Development

No branches or pull requests

1 participant