diff --git a/.changeset/breezy-coats-play.md b/.changeset/breezy-coats-play.md new file mode 100644 index 00000000000..6f5ee2b2813 --- /dev/null +++ b/.changeset/breezy-coats-play.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Adds aria-hidden="true" to InputLabel required asterisk diff --git a/docs/content/InputField.mdx b/docs/content/InputField.mdx index 259f69e4ca6..741e9e1671b 100644 --- a/docs/content/InputField.mdx +++ b/docs/content/InputField.mdx @@ -3,7 +3,7 @@ componentId: inputField title: InputField status: Alpha description: The InputField component is used to render a labelled text input and, optionally, associated validation text and hint text. -source: https://github.com/primer/react/blob/main/src/InputField.tsx +source: https://github.com/primer/react/blob/main/src/InputField/InputField.tsx storybook: '/react/storybook?path=/story/forms-inputfield--text-input-field' --- diff --git a/src/_InputLabel.tsx b/src/_InputLabel.tsx index 31f345737bd..21925eedc98 100644 --- a/src/_InputLabel.tsx +++ b/src/_InputLabel.tsx @@ -25,7 +25,7 @@ const InputLabel: React.FC = ({children, disabled, required, visuallyHidd {required ? ( {children} - * + ) : ( children