Skip to content

Commit 4180e42

Browse files
fix: typos (adobe#9269)
Co-authored-by: Reid Barber <reid@reidbarber.com>
1 parent ac02760 commit 4180e42

20 files changed

Lines changed: 29 additions & 29 deletions

File tree

packages/@react-aria/button/docs/useToggleButtonGroup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ By default, toggle button groups are horizontally oriented. The orientation prop
252252
</ToggleButtonGroup>
253253
```
254254

255-
## Accessiblity
255+
## Accessibility
256256

257257
A `ToggleButtonGroup` can be labeled using the `aria-label` or `aria-labelledby` props.
258258

packages/@react-aria/overlays/docs/usePopover.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ with <TypeLink links={dialogDocs.links} type={dialogDocs.exports.useDialog} />.
7878

7979
The `Popover` component uses an &lt;<TypeLink links={docs.links} type={docs.exports.Overlay} />&gt; to render its contents in a React [Portal](https://reactjs.org/docs/portals.html) at the end of the document body, which ensures it is not clipped by other elements. It also acts as a focus scope, containing focus within the popover and restoring it to the trigger when it unmounts. <TypeLink links={docs.links} type={docs.exports.usePopover} /> handles positioning the popover relative to the trigger element, and closing it when the user interacts outside or presses the <Keyboard>Escape</Keyboard> key.
8080

81-
<TypeLink links={docs.links} type={docs.exports.usePopover} /> also hides content outside the popover from screen readers, which is important since the surrounding content won't be in context of the original trigger due to the portal. To allow screen reader users to dismiss the popover without a keyboard (e.g. on mobile), visually hidden &lt;<TypeLink links={docs.links} type={docs.exports.DismissButton} />&gt; elements are added at the start and end of the popover. An underlay is also used to prevent scrolling and interacting with elements outside the popover with a pointer, to avoid unintentially repositioning or closing it.
81+
<TypeLink links={docs.links} type={docs.exports.usePopover} /> also hides content outside the popover from screen readers, which is important since the surrounding content won't be in context of the original trigger due to the portal. To allow screen reader users to dismiss the popover without a keyboard (e.g. on mobile), visually hidden &lt;<TypeLink links={docs.links} type={docs.exports.DismissButton} />&gt; elements are added at the start and end of the popover. An underlay is also used to prevent scrolling and interacting with elements outside the popover with a pointer, to avoid unintentionally repositioning or closing it.
8282

8383
```tsx example export=true render=false
8484
import type {AriaPopoverProps} from 'react-aria';

packages/@react-spectrum/autocomplete/docs/SearchAutocomplete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ See Icon's [labeling](workflow-icons.html#labeling) section and Avatar's [access
234234
<Item textValue="Mail">
235235
<Email size="S" />
236236
<Text>Mail</Text>
237-
<Text slot="description">Send and recieve emails</Text>
237+
<Text slot="description">Send and receive emails</Text>
238238
</Item>
239239
<Item textValue="File Explorer">
240240
<Folder size="S" />

packages/@react-spectrum/filetrigger/docs/FileTrigger.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ By default, the file trigger will accept any file type. To support only certain
8585

8686
## Multiple files
8787

88-
A file trigger can accept multiple files by passsing the `allowsMultiple` property.
88+
A file trigger can accept multiple files by passing the `allowsMultiple` property.
8989

9090
```tsx example
9191
<FileTrigger allowsMultiple>

packages/@react-spectrum/icon/docs/custom-icons.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function CustomIcon(props) {
5151
<CustomIcon aria-label="Star" />
5252
```
5353

54-
Wrapping the SVG with Icon will ensure it recieves proper styling when used within React Spectrum components:
54+
Wrapping the SVG with Icon will ensure it receives proper styling when used within React Spectrum components:
5555

5656
```tsx example
5757
import {Button, Text} from '@adobe/react-spectrum';

packages/@react-spectrum/progress/docs/ProgressCircle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ keywords: [progress circle]
4545
## Value
4646

4747
ProgressCircles are controlled with the `value` prop.
48-
By default, the `value` prop represents the current percentage of progress, as the minimum and maxiumum values default to 0 and 100, respectively.
48+
By default, the `value` prop represents the current percentage of progress, as the minimum and maximum values default to 0 and 100, respectively.
4949

5050
```tsx example
5151
<ProgressCircle aria-label="Loading…" value={25} />

packages/@react-spectrum/tabs/stories/Tabs.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ ChangingTabTitles.story = {
374374
name: 'changing tab titles'
375375
};
376376

377-
export const ChangingSelectionProgramatically: TabsStory = () => <ControlledSelection />;
377+
export const ChangingSelectionProgrammatically: TabsStory = () => <ControlledSelection />;
378378

379-
ChangingSelectionProgramatically.story = {
380-
name: 'changing selection programatically'
379+
ChangingSelectionProgrammatically.story = {
380+
name: 'changing selection programmatically'
381381
};
382382

383383
export const Links: StoryFn<SpectrumTabsProps<unknown> & {collapsed?: boolean}> = (args) => {

packages/@react-spectrum/tabs/test/Tabs.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ describe('Tabs', function () {
880880
expect(onSelectionChange).toHaveBeenCalledWith(defaultItems[0].name);
881881
});
882882

883-
it('updates the tab index of the selected tab if programatically changed', function () {
883+
it('updates the tab index of the selected tab if programmatically changed', function () {
884884
let Example = (props) => (
885885
<Provider theme={theme}>
886886
<Tabs aria-label="Test Tabs" items={defaultItems} selectedKey={props.selectedKey}>

packages/@react-spectrum/tree/chromatic-fc/TreeView.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ export const DisabledBehaviorAll: TreeViewStoryProps = () => (
135135
<TestTree disabledBehavior="all" selectionMode="multiple" />
136136
);
137137

138-
export const HiglightSelectionWithDisabledBehaviorAll: TreeViewStoryProps = () => (
138+
export const HighlightSelectionWithDisabledBehaviorAll: TreeViewStoryProps = () => (
139139
<TestTree selectionStyle="highlight" selectionMode="multiple" disabledBehavior="all" />
140140
);

packages/@react-types/calendar/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface CalendarPropsBase {
4545
autoFocus?: boolean,
4646
/** Controls the currently focused date within the calendar. */
4747
focusedValue?: DateValue | null,
48-
/** The date that is focused when the calendar first mounts (uncountrolled). */
48+
/** The date that is focused when the calendar first mounts (uncontrolled). */
4949
defaultFocusedValue?: DateValue | null,
5050
/** Handler that is called when the focused date changes. */
5151
onFocusChange?: (date: CalendarDate) => void,

0 commit comments

Comments
 (0)