mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Clarifying how to apply aria-* attributes (#9843)
Provide explicit example of what "keep lowercase" means for `aria-*` attributes.
This commit is contained in:
@@ -16,7 +16,7 @@ redirect_from:
|
||||
|
||||
React implements a browser-independent DOM system for performance and cross-browser compatibility. We took the opportunity to clean up a few rough edges in browser DOM implementations.
|
||||
|
||||
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.
|
||||
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`.
|
||||
|
||||
## Differences In Attributes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user