Skip to content

Commit c2a9115

Browse files
fix(tablistvertical): no longer require aria-label (#18571)
1 parent 0ff886d commit c2a9115

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7889,7 +7889,6 @@ Map {
78897889
"type": "oneOf",
78907890
},
78917891
"aria-label": Object {
7892-
"isRequired": true,
78937892
"type": "string",
78947893
},
78957894
"children": Object {

packages/react/src/components/Tabs/Tabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export interface TabListVerticalProps extends DivAttributes {
854854
* Provide an accessible label to be read when a user interacts with this
855855
* component
856856
*/
857-
'aria-label': string;
857+
'aria-label'?: string;
858858

859859
/**
860860
* Provide child elements to be rendered inside `ContentTabs`.
@@ -1068,7 +1068,7 @@ TabListVertical.propTypes = {
10681068
* Provide an accessible label to be read when a user interacts with this
10691069
* component
10701070
*/
1071-
'aria-label': PropTypes.string.isRequired,
1071+
'aria-label': PropTypes.string,
10721072

10731073
/**
10741074
* Provide child elements to be rendered inside `ContentTabs`.

0 commit comments

Comments
 (0)