-
Notifications
You must be signed in to change notification settings - Fork 470
Change snakecase to camelcase for prop #7460
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
Change snakecase to camelcase for prop #7460
Conversation
According to the React docs, ARIA attributes should be snake case, not camel case. See https://react.dev/reference/react-dom/components/common#common-props
The correct JSX output should be <label aria-label={"close sidebar"} /> So IMHO the fix should just be to remove the double quotes around the prop name. |
Interesting, I didn't know area labels were an exception here. |
Actually, I think the right thing is just to never escape/add quotes to the prop name. Any prop name can use |
The check added #7429 might not have been the best fit. I've addressed it. |
rescript
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/darwin-arm64
@rescript/linux-x64
@rescript/win32-x64
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now! Thanks!
Fixes #7451