Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/pages/react-aria/Toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Include a `<Button slot="close">` to allow users to dismiss the toast manually.

<InlineAlert variant="notice">
<Heading>Accessibility</Heading>
<Content>We recommend that that the close button should be rendered as a sibling of `<ToastContent>` rather than inside it, so that screen readers announce the toast content without the close button first.</Content>
<Content>We recommend that the close button should be rendered as a sibling of `<ToastContent>` rather than inside it, so that screen readers announce the toast content without the close button first.</Content>
</InlineAlert>

## Dismissal
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/pages/react-aria/Tree/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let testUtilUser = new User({
});
// ...

it('Tree can select and expand a item via keyboard', async function () {
it('Tree can select and expand an item via keyboard', async function () {
// Render your test component/app and initialize the Tree tester
let {getByTestId} = render(
<Tree data-testid="test-tree" selectionMode="multiple">
Expand Down
4 changes: 2 additions & 2 deletions packages/dev/s2-docs/pages/react-aria/forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Supported constraints include:

* `isRequired` indicates that a field must have a value before the form can be submitted.
* `minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
* `minLength` and `maxLength` specify the minimum and length of text input.
* `minLength` and `maxLength` specify the minimum and maximum length of text input.
* `pattern` provides a custom [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that a text input must conform to.
* `type="email"` and `type="url"` provide builtin validation for email addresses and URLs.

Expand Down Expand Up @@ -261,7 +261,7 @@ By default, invalid fields block forms from being submitted. To avoid this, use

Client side validation is useful to give the user immediate feedback, but data should always be validated on the backend for security and reliability. Your business logic may also include rules which cannot be validated on the frontend.

To display server validation errors, set the the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
To display server validation errors, set the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.

```tsx render
'use client';
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/pages/react-aria/releases/v1-0-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ In this release, we made a few last API updates to React Aria Components as they
* Docs for `useLandmark` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/5418)
* Fix prop table in docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/5532)
* Update `FileTrigger` directory prop name and docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/5512)
* Fix broken links in the the docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/5572)
* Fix broken links in the docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/5572)
* Update collections and selection guides for React Aria Components - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5455)

## Released packages
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/pages/s2/TreeView/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let testUtilUser = new User({
});
// ...

it('TreeView can select a item via keyboard', async function () {
it('TreeView can select an item via keyboard', async function () {
// Render your test component/app and initialize the Tree tester
let {getByTestId} = render(
<Tree data-testid="test-tree" selectionMode="multiple">
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/s2-docs/pages/s2/collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const description = 'How to load and render collections.';

# Collections

<PageDescription>Many components display a collection of items, and provide functionality such as keyboard navigation, and selection. Learn how to load and render collections using React Spectrums's compositional API.</PageDescription>
<PageDescription>Many components display a collection of items, and provide functionality such as keyboard navigation, and selection. Learn how to load and render collections using React Spectrum's compositional API.</PageDescription>

## Static collections

Expand Down
8 changes: 4 additions & 4 deletions packages/dev/s2-docs/pages/s2/forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Supported constraints include:

* `isRequired` indicates that a field must have a value before the form can be submitted.
* `minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
* `minLength` and `maxLength` specify the minimum and length of text input.
* `minLength` and `maxLength` specify the minimum and maximum length of text input.
* `pattern` provides a custom [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that a text input must conform to.
* `type="email"` and `type="url"` provide builtin validation for email addresses and URLs.

Expand Down Expand Up @@ -190,7 +190,7 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};

<InlineAlert variant="informative">
<Heading>Localization</Heading>
<Content>The default error messages are localized by the browser using the browser/operating system language setting. React Spectrums's [Provider](Provider) has no effect on validation errors.</Content>
<Content>The default error messages are localized by the browser using the browser/operating system language setting. React Spectrum's [Provider](Provider) has no effect on validation errors.</Content>
</InlineAlert>

### Custom validation
Expand Down Expand Up @@ -260,7 +260,7 @@ By default, invalid fields block forms from being submitted. To avoid this, use

Client side validation is useful to give the user immediate feedback, but data should always be validated on the backend for security and reliability. Your business logic may also include rules which cannot be validated on the frontend.

To display server validation errors, set the the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
To display server validation errors, set the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.

```tsx render
'use client';
Expand Down Expand Up @@ -478,7 +478,7 @@ function App() {
onBlur={onBlur}
ref={ref}
isRequired
validationState={invalid ? 'invalid' : undefined}
isInvalid={invalid}
errorMessage={error?.message}
/>
)}
Expand Down
6 changes: 3 additions & 3 deletions packages/dev/s2-docs/pages/s2/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Install React Spectrum with your preferred package manager.
// Use content hash in filename for long term cacheability.
filename: '[name].[contenthash].css',
// Ignore warnings about CSS order. Style macros generate atomic CSS,
// which is resiliant to ordering differences.
// which is resilient to ordering differences.
ignoreOrder: true
})
],
Expand Down Expand Up @@ -205,7 +205,7 @@ Install React Spectrum with your preferred package manager.
],
build: {
target: ['es2022'],
// Lightning CSS produces much a smaller CSS bundle than the default minifier.
// Lightning CSS produces a much smaller CSS bundle than the default minifier.
cssMinify: 'lightningcss',
rollupOptions: {
output: {
Expand Down Expand Up @@ -373,7 +373,7 @@ Install React Spectrum with your preferred package manager.
],
build: {
target: ['es2022'],
// Lightning CSS produces much a smaller CSS bundle than the default minifier.
// Lightning CSS produces a much smaller CSS bundle than the default minifier.
cssMinify: 'lightningcss',
rollupOptions: {
output: {
Expand Down