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

Trim custom property values and create getPrefix module #880

Merged
merged 1 commit into from Apr 21, 2022

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented Apr 21, 2022

Problem

In some browsers, getting the value of a custom property in JavaScript returns extra spacing. This caused some flows to break unexpectedly in browsers that included extra spacing on returned values.

Solution

This PR adds the trim() method to the returned custom property value and creates the getPrefix() module for shared functionality.

@sebnitu sebnitu marked this pull request as ready for review April 21, 2022 16:07
@sebnitu sebnitu merged commit db146fd into main Apr 21, 2022
@sebnitu sebnitu deleted the trim-style-properties branch April 21, 2022 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant