Skip to content

Commit f2ee5b2

Browse files
committed
fix docs typos
1 parent e1c05d6 commit f2ee5b2

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

packages/dev/s2-docs/pages/react-aria/Toast.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Include a `<Button slot="close">` to allow users to dismiss the toast manually.
122122

123123
<InlineAlert variant="notice">
124124
<Heading>Accessibility</Heading>
125-
<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>
125+
<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>
126126
</InlineAlert>
127127

128128
## Dismissal

packages/dev/s2-docs/pages/react-aria/Tree/testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let testUtilUser = new User({
4343
});
4444
// ...
4545

46-
it('Tree can select and expand a item via keyboard', async function () {
46+
it('Tree can select and expand an item via keyboard', async function () {
4747
// Render your test component/app and initialize the Tree tester
4848
let {getByTestId} = render(
4949
<Tree data-testid="test-tree" selectionMode="multiple">

packages/dev/s2-docs/pages/react-aria/forms.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Supported constraints include:
161161

162162
* `isRequired` indicates that a field must have a value before the form can be submitted.
163163
* `minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
164-
* `minLength` and `maxLength` specify the minimum and length of text input.
164+
* `minLength` and `maxLength` specify the minimum and maximum length of text input.
165165
* `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.
166166
* `type="email"` and `type="url"` provide builtin validation for email addresses and URLs.
167167

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

262262
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.
263263

264-
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.
264+
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.
265265

266266
```tsx render
267267
'use client';

packages/dev/s2-docs/pages/react-aria/frameworks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const description = 'How to integrate with your framework.';
268268
export default defineConfig({
269269
plugins: [
270270
{
271-
...optimizeLocales.vite({
271+
...localesPlugin.vite({
272272
locales: ['en-US', 'fr-FR']
273273
}),
274274
enforce: 'pre'

packages/dev/s2-docs/pages/react-aria/releases/v1-0-0.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ In this release, we made a few last API updates to React Aria Components as they
100100
* Docs for `useLandmark` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/5418)
101101
* Fix prop table in docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/5532)
102102
* Update `FileTrigger` directory prop name and docs - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/5512)
103-
* Fix broken links in the the docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/5572)
103+
* Fix broken links in the docs - [@ktabors](https://github.com/ktabors) - [PR](https://github.com/adobe/react-spectrum/pull/5572)
104104
* Update collections and selection guides for React Aria Components - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/5455)
105105

106106
## Released packages

packages/dev/s2-docs/pages/s2/TreeView/testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let testUtilUser = new User({
4343
});
4444
// ...
4545

46-
it('TreeView can select a item via keyboard', async function () {
46+
it('TreeView can select an item via keyboard', async function () {
4747
// Render your test component/app and initialize the Tree tester
4848
let {getByTestId} = render(
4949
<Tree data-testid="test-tree" selectionMode="multiple">

packages/dev/s2-docs/pages/s2/collections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const description = 'How to load and render collections.';
88

99
# Collections
1010

11-
<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>
11+
<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>
1212

1313
## Static collections
1414

packages/dev/s2-docs/pages/s2/forms.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Supported constraints include:
154154

155155
* `isRequired` indicates that a field must have a value before the form can be submitted.
156156
* `minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
157-
* `minLength` and `maxLength` specify the minimum and length of text input.
157+
* `minLength` and `maxLength` specify the minimum and maximum length of text input.
158158
* `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.
159159
* `type="email"` and `type="url"` provide builtin validation for email addresses and URLs.
160160

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

191191
<InlineAlert variant="informative">
192192
<Heading>Localization</Heading>
193-
<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>
193+
<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>
194194
</InlineAlert>
195195

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

261261
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.
262262

263-
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.
263+
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.
264264

265265
```tsx render
266266
'use client';
@@ -478,7 +478,7 @@ function App() {
478478
onBlur={onBlur}
479479
ref={ref}
480480
isRequired
481-
validationState={invalid ? 'invalid' : undefined}
481+
isInvalid={invalid}
482482
errorMessage={error?.message}
483483
/>
484484
)}

packages/dev/s2-docs/pages/s2/getting-started.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Install React Spectrum with your preferred package manager.
116116
// Use content hash in filename for long term cacheability.
117117
filename: '[name].[contenthash].css',
118118
// Ignore warnings about CSS order. Style macros generate atomic CSS,
119-
// which is resiliant to ordering differences.
119+
// which is resilient to ordering differences.
120120
ignoreOrder: true
121121
})
122122
],
@@ -205,7 +205,7 @@ Install React Spectrum with your preferred package manager.
205205
],
206206
build: {
207207
target: ['es2022'],
208-
// Lightning CSS produces much a smaller CSS bundle than the default minifier.
208+
// Lightning CSS produces a much smaller CSS bundle than the default minifier.
209209
cssMinify: 'lightningcss',
210210
rollupOptions: {
211211
output: {
@@ -239,7 +239,7 @@ Install React Spectrum with your preferred package manager.
239239
plugins: [
240240
// ...
241241
{
242-
...optimizeLocales.vite({
242+
...localesPlugin.vite({
243243
locales: ['en-US', 'fr-FR']
244244
}),
245245
enforce: 'pre'
@@ -373,7 +373,7 @@ Install React Spectrum with your preferred package manager.
373373
],
374374
build: {
375375
target: ['es2022'],
376-
// Lightning CSS produces much a smaller CSS bundle than the default minifier.
376+
// Lightning CSS produces a much smaller CSS bundle than the default minifier.
377377
cssMinify: 'lightningcss',
378378
rollupOptions: {
379379
output: {
@@ -456,7 +456,7 @@ Install React Spectrum with your preferred package manager.
456456
export default defineConfig({
457457
plugins: [
458458
{
459-
...optimizeLocales.vite({
459+
...localesPlugin.vite({
460460
locales: ['en-US', 'fr-FR']
461461
}),
462462
enforce: 'pre'

0 commit comments

Comments
 (0)