Skip to content

Commit 4c2b130

Browse files
docs: Fix Typos (#6686)
Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
1 parent 31230ca commit 4c2b130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react/src/Button/Button.features.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const LabelWrap = () => {
205205
}
206206

207207
export const InactiveButtonWithTooltip = () => (
208-
<Tooltip text="Action unavailable: an error occurred while loading respository permissions" direction="n">
208+
<Tooltip text="Action unavailable: an error occurred while loading repository permissions" direction="n">
209209
<Button inactive>Review changes</Button>
210210
</Tooltip>
211211
)

packages/react/src/Button/ButtonBase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const ButtonBase = forwardRef(
111111
.filter(descriptionID => Boolean(descriptionID))
112112
.join(' ')}
113113
// aria-labelledby is needed because the accessible name becomes unset when the button is in a loading state.
114-
// We only set it when the button is in a loading state because it will supercede the aria-label when the screen
114+
// We only set it when the button is in a loading state because it will supersede the aria-label when the screen
115115
// reader announces the button name.
116116
aria-labelledby={
117117
loading ? [`${uuid}-label`, ariaLabelledBy].filter(labelID => Boolean(labelID)).join(' ') : ariaLabelledBy
@@ -233,7 +233,7 @@ const ButtonBase = forwardRef(
233233
.filter(descriptionID => Boolean(descriptionID))
234234
.join(' ')}
235235
// aria-labelledby is needed because the accessible name becomes unset when the button is in a loading state.
236-
// We only set it when the button is in a loading state because it will supercede the aria-label when the screen
236+
// We only set it when the button is in a loading state because it will supersede the aria-label when the screen
237237
// reader announces the button name.
238238
aria-labelledby={
239239
loading ? [`${uuid}-label`, ariaLabelledBy].filter(labelID => Boolean(labelID)).join(' ') : ariaLabelledBy

0 commit comments

Comments
 (0)