From 1403064a86160f0a09e49ce6182925313c613a6e Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 27 Oct 2025 18:11:21 -0700 Subject: [PATCH 1/3] docs: Add concepts page --- .../dev/s2-docs/pages/react-aria/concepts.mdx | 156 ++++++++++++++++++ .../dev/s2-docs/pages/react-aria/index.mdx | 6 +- .../dev/s2-docs/pages/react-aria/styling.mdx | 2 +- 3 files changed, 160 insertions(+), 4 deletions(-) create mode 100644 packages/dev/s2-docs/pages/react-aria/concepts.mdx diff --git a/packages/dev/s2-docs/pages/react-aria/concepts.mdx b/packages/dev/s2-docs/pages/react-aria/concepts.mdx new file mode 100644 index 00000000000..5dd5c6f6f8e --- /dev/null +++ b/packages/dev/s2-docs/pages/react-aria/concepts.mdx @@ -0,0 +1,156 @@ +import {Layout} from '../../src/Layout'; +export default Layout; + +export const section = 'Guides'; +export const description = 'Implementing drag and drop in React Aria'; + +# Concepts + +React Aria is built around three core principles: **Accessibility**, **Internationalization**, and **Interactions**. Together, these ensure that every component you build works for everyone, everywhere, and on every device. + +## Accessibility + +Accessible applications are usable by everyone, including people with disabilities. Accessibility benefits all users — not just those using assistive technologies — by improving efficiency, consistency, and usability. + +React Aria provides built-in support for screen readers and keyboard navigation, following the [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) and [ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/) guidelines. It supplies the correct semantics via ARIA roles and attributes, handles keyboard and pointer events, manages focus, and provides screen reader announcements. React Aria components are tested across a wide variety of devices, browsers, and screen readers. + +You’re responsible for providing meaningful labels and ensuring your visual design supports all users. This includes designing with sufficient [color contrast](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast) and [hit target sizes](https://www.w3.org/WAI/WCAG22/Understanding/target-size-enhanced), including visible [focus rings](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance), respecting [motion preferences](https://www.w3.org/WAI/WCAG21/Understanding/animation-from-interactions), and more. The [WCAG guidelines](https://www.w3.org/WAI/WCAG22/Understanding/) are a good resource to reference when designing and building components with React Aria. + +### Labeling + +Most components should have a visible label, which is usually provided by rendering a `