Skip to content

Commit cf82360

Browse files
committed
fix(ButtonPrimitive): loading glyph is hidden from screen readers
1 parent 3436f97 commit cf82360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/orbit-components/src/primitives/ButtonPrimitive/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const ButtonPrimitive = React.forwardRef<HTMLButtonElement | HTMLAnchorElement,
221221
)}
222222
style={varsButton}
223223
>
224-
{loading && <Loading type="buttonLoader" />}
224+
{loading && <Loading ariaHidden type="buttonLoader" />}
225225

226226
{iconLeft != null && (
227227
<div

packages/orbit-components/src/primitives/Primitives.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const ButtonPrimitive: Story = {
153153
role: "",
154154
spaceAfter: SPACINGS_AFTER.SMALL,
155155
submit: false,
156-
title: "",
156+
title: "Button title",
157157
tabIndex: 0,
158158
width: "",
159159
contentAlign: "center",

0 commit comments

Comments
 (0)