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

[Bug] Widget style prop does not apply styles for camel cased style keys #8990

Open
7 tasks
TylerMatteo opened this issue Jun 29, 2024 · 0 comments · May be fixed by #8991
Open
7 tasks

[Bug] Widget style prop does not apply styles for camel cased style keys #8990

TylerMatteo opened this issue Jun 29, 2024 · 0 comments · May be fixed by #8991
Labels

Comments

@TylerMatteo
Copy link

Description

When I pass a style object to widgets, styles for camel cased attributes (borderColor, zIndex, etc) aren't applied. Setting styles with dash cased keys does work but that violates the CSSStyleDeclaration type.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

I expect to see all style applied to the widget while still complying with the typings

Steps to Reproduce

Here is a link to a branch of a repo that can be used to reproduce this issue: https://github.com/TylerMatteo/react-deck-boilerplate/tree/widget-dashcase-style-bug

To reproduce:

  1. Clone this repo and check out the widget-dashcase-style-bug branch
  2. npm install
  3. npm run dev
  4. Observe that the widget styles applied to ZoomWidget in /src/App.tsx aren't applied.

Environment

Logs

N/A

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 a pull request may close this issue.

1 participant