Skip to content

Commit ee3cc80

Browse files
authored
combobox: changing example to be more inclusive (#3866)
1 parent b6425fc commit ee3cc80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@react-spectrum/combobox/docs/ComboBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ function Example() {
835835
validationState={!animalId ? undefined : isValid ? 'valid' : 'invalid'}
836836
label="Favorite animal"
837837
description="Pick your favorite animal, you will be judged."
838-
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh god it\'s a snake! Choose anything else.'}
838+
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh no it\'s a snake! Choose anything else.'}
839839
items={options}
840840
selectedKey={animalId}
841841
onSelectionChange={selected => setAnimalId(selected)}>

packages/@react-spectrum/picker/docs/Picker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function Example() {
373373
validationState={isValid ? 'valid' : 'invalid'}
374374
label="Favorite animal"
375375
description="Pick your favorite animal, you will be judged."
376-
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh god it\'s a snake! Choose anything else.'}
376+
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh no it\'s a snake! Choose anything else.'}
377377
items={options}
378378
selectedKey={animalId}
379379
onSelectionChange={selected => setAnimalId(selected)}>

0 commit comments

Comments
 (0)