+
+
```
Most fields should have a visible label. In rare exceptions, the `aria-label` or `aria-labelledby` attribute must be provided instead to identify the element to screen readers.
@@ -55,7 +59,7 @@ function Example() {
return (
);
}
diff --git a/packages/dev/s2-docs/tailwind/home.global.css b/packages/dev/s2-docs/tailwind/home.global.css
index ebe527a21dc..14eb88978b3 100644
--- a/packages/dev/s2-docs/tailwind/home.global.css
+++ b/packages/dev/s2-docs/tailwind/home.global.css
@@ -19,3 +19,16 @@
body {
font-family: "adobe-clean-spectrum-vf", system-ui, sans-serif;
}
+
+@media (min-resolution: 200dpi) {
+ :root {
+ --spacing: calc(0.25rem * 1.25);
+ --text-xs: calc(0.75rem * 1.125);
+ --text-sm: calc(0.875rem * 1.125);
+ --text-base: calc(1rem * 1.125);
+ --text-lg: calc(1.125rem * 1.125);
+ --text-xl: calc(1.25rem * 1.125);
+ --text-2xl: calc(1.5rem * 1.125);
+ --text-3xl: calc(1.875rem * 1.125);
+ }
+}
diff --git a/packages/dev/s2-docs/tailwind/tailwind.css b/packages/dev/s2-docs/tailwind/tailwind.css
index e6590ca4681..75d6fb095d3 100644
--- a/packages/dev/s2-docs/tailwind/tailwind.css
+++ b/packages/dev/s2-docs/tailwind/tailwind.css
@@ -11,10 +11,12 @@
@media (min-resolution: 200dpi) {
:root {
--spacing: calc(0.25rem * 1.25);
- --text-xs: calc(0.75rem * 1.25);
- --text-sm: calc(0.875rem * 1.25);
- --text-base: calc(1rem * 1.25);
- --text-lg: calc(1.125rem * 1.25);
- --text-xl: calc(1.25rem * 1.25);
+ --text-xs: calc(0.75rem * 1.125);
+ --text-sm: calc(0.875rem * 1.125);
+ --text-base: calc(1rem * 1.125);
+ --text-lg: calc(1.125rem * 1.125);
+ --text-xl: calc(1.25rem * 1.125);
+ --text-2xl: calc(1.5rem * 1.125);
+ --text-3xl: calc(1.875rem * 1.125);
}
}
diff --git a/packages/react-aria-components/src/Link.tsx b/packages/react-aria-components/src/Link.tsx
index 08678bdb195..22df63e3ac3 100644
--- a/packages/react-aria-components/src/Link.tsx
+++ b/packages/react-aria-components/src/Link.tsx
@@ -23,7 +23,7 @@ import {filterDOMProps} from '@react-aria/utils';
import {forwardRefType, GlobalDOMAttributes} from '@react-types/shared';
import React, {createContext, ElementType, ForwardedRef, forwardRef} from 'react';
-export interface LinkProps extends Omit
, HoverEvents, RenderProps, SlotProps, Omit, 'onClick'> {
+export interface LinkProps extends Omit, HoverEvents, RenderProps, SlotProps, Omit, 'onClick'> {
/**
* The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state.
* @default 'react-aria-Link'
diff --git a/starters/docs/src/DatePicker.css b/starters/docs/src/DatePicker.css
index b5662674b01..c4f0571ae5b 100644
--- a/starters/docs/src/DatePicker.css
+++ b/starters/docs/src/DatePicker.css
@@ -10,5 +10,6 @@
.react-aria-DateInput {
width: 100%;
+ padding-right: var(--spacing-10);
}
}
diff --git a/starters/tailwind/src/Calendar.tsx b/starters/tailwind/src/Calendar.tsx
index 418c5c40e80..50c683f2683 100644
--- a/starters/tailwind/src/Calendar.tsx
+++ b/starters/tailwind/src/Calendar.tsx
@@ -20,7 +20,7 @@ import { composeTailwindRenderProps, focusRing } from './utils';
const cellStyles = tv({
extend: focusRing,
- base: 'w-9 h-9 m-px text-sm cursor-default rounded-full flex items-center justify-center forced-color-adjust-none',
+ base: 'w-9 h-9 text-sm cursor-default rounded-full flex items-center justify-center forced-color-adjust-none',
variants: {
isSelected: {
false: 'text-zinc-900 dark:text-zinc-200 hover:bg-gray-100 dark:hover:bg-zinc-700 pressed:bg-gray-200 dark:pressed:bg-zinc-600',
@@ -42,7 +42,7 @@ export function Calendar(
return (
-
+
{(date) => }
diff --git a/starters/tailwind/src/ComboBox.tsx b/starters/tailwind/src/ComboBox.tsx
index 94038bc8889..2628a49fafb 100644
--- a/starters/tailwind/src/ComboBox.tsx
+++ b/starters/tailwind/src/ComboBox.tsx
@@ -36,7 +36,7 @@ export function ComboBox(
{description && {description}}
{errorMessage}
-
+
{children}
diff --git a/starters/tailwind/src/ListBox.tsx b/starters/tailwind/src/ListBox.tsx
index 8a051d46cf6..97309a8fd00 100644
--- a/starters/tailwind/src/ListBox.tsx
+++ b/starters/tailwind/src/ListBox.tsx
@@ -96,7 +96,7 @@ export interface DropdownSectionProps extends SectionProps {
export function DropdownSection(props: DropdownSectionProps) {
return (
-
+
{props.children}
diff --git a/starters/tailwind/src/Select.tsx b/starters/tailwind/src/Select.tsx
index 478263197d5..6975e187c29 100644
--- a/starters/tailwind/src/Select.tsx
+++ b/starters/tailwind/src/Select.tsx
@@ -50,7 +50,7 @@ export function Select(
{description && {description}}
{errorMessage}
-
+
{children}
diff --git a/starters/tailwind/src/Table.tsx b/starters/tailwind/src/Table.tsx
index 0313fdd8d50..62298acabc5 100644
--- a/starters/tailwind/src/Table.tsx
+++ b/starters/tailwind/src/Table.tsx
@@ -51,7 +51,7 @@ const resizerStyles = tv({
export function Column(props: ColumnProps) {
return (
-
+
{composeRenderProps(props.children, (children, { allowsSorting, sortDirection }) => (