Clarifying how to apply aria-* attributes (#9843)
Provide explicit example of what "keep lowercase" means for `aria-*` attributes.
cjshawMIT committed
Jun 5, 2017 at 10:48 UTC
550b0220ca146fbe6fa0695c2fb9d97944d6abfe
1 file changed
+1
-1
docs/docs/reference-dom-elements.md
+1
-1
@@ -16,7 +16,7 @@ redirect_from:
16
17
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.
18
19
-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.
19
+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`.
20
21
## Differences In Attributes
22