facebook / facebook/stylex

stylex.attrs doesn't work with dynamic styles when using multi-word properties

Open
#1,709 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
10.3k
Forks
481
Avg merge
3d 8h
Merged PRs (30d)
13

Description

### Describe the issue

When using multi-word properties like `colorScheme`, the variables use kebab-case when inlined, but use camelCase in compiled CSS.

### Expected behavior

Variable names are synced between the inlined styles and compiled CSS.

### Steps to reproduce

1. Create dynamic styles with multi-word properties like `colorScheme`
2. Apply it with stylex.attrs

### Test case

_No response_

### Additional comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.