diff --git a/.changeset/forty-cougars-tease.md b/.changeset/forty-cougars-tease.md new file mode 100644 index 000000000..102d12ea2 --- /dev/null +++ b/.changeset/forty-cougars-tease.md @@ -0,0 +1,5 @@ +--- +"@orbit-ui/components": patch +--- + +Update message about accessibility on input elements diff --git a/packages/components/src/number-input/src/NumberInput.tsx b/packages/components/src/number-input/src/NumberInput.tsx index f422a54db..8b98814db 100644 --- a/packages/components/src/number-input/src/NumberInput.tsx +++ b/packages/components/src/number-input/src/NumberInput.tsx @@ -202,7 +202,7 @@ export function InnerNumberInput(props: InnerNumberInputProps) { } = adaptInputStylingProps(props, contextualProps); if (isNil(ariaLabel) && isNil(ariaLabelledBy) && isNil(placeholder)) { - console.error("An input component must either have an \"aria-label\" attribute, an \"aria-labelledby\" attribute or a \"placeholder\" attribute."); + console.error("An input component must either be wrapped inside a `` component with a `