Skip to content

✨ Allow maxWidth to support unset and other keywords #48

Open
@colinkautz

Description

@colinkautz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureA new feature or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions