[go: nahoru, domu]

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

fix(widgets): convert widget style prop keys from camel to dash case #8991

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TylerMatteo
Copy link

Closes #8990

Change List

  • Update CompassWidget, ZoomWidget, and FullscreenWidget with regex to convert camel cased style keys to their dash cased equivalent.

I settled on replace(/([a-z])([A-Z])/g, '$1-$2') as the regex replacement (credit) but I'm open to suggestions if there is a better approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Widget style prop does not apply styles for camel cased style keys
1 participant