Skip to content

Targeting nested elements using tagged-template literal notation #1330

Answered by hasparus
dungle-scrubs asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @dungle-scrubs, that's wrong repo for this question. It might be useful to post stuff like this in https://github.com/emotion-js/emotion/.

Try data-type="panel" instead of dataType="panel". aria- and data- props are kebab-case, unlike any other props.

In React, all DOM properties and attributes (including event handlers) should be camelCased. For example, the HTML attribute tabindex corresponds to the attribute tabIndex in React. The exception is aria-* and data-* attributes, which should be lowercased. For example, you can keep aria-label as aria-label.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dungle-scrubs
Comment options

Answer selected by dungle-scrubs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants