Skip to content

Commit e10e111

Browse files
authored
[core] Pin eslint-plugin-jsx-a11y version to 6.7.1 (#43292)
1 parent 1758f62 commit e10e111

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

docs/src/modules/components/ApiPage/list/ExpandableApiItem.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ export default function ExpandableApiItem(props: ExpandableApiItemProps) {
178178
React.useEffect(() => {
179179
setIsExtended(displayOption === 'expanded');
180180
}, [displayOption]);
181+
182+
const anchorLabelId = React.useId();
183+
181184
return (
182185
<Root
183186
ownerState={{ type }}
@@ -189,12 +192,13 @@ export default function ExpandableApiItem(props: ExpandableApiItemProps) {
189192
)}
190193
>
191194
<div className="MuiApi-item-header">
192-
<a className="MuiApi-item-link-visual" href={`#${id}`}>
195+
<a className="MuiApi-item-link-visual" href={`#${id}`} aria-labelledby={anchorLabelId}>
193196
<svg>
194197
<use xlinkHref="#anchor-link-icon" />
195198
</svg>
196199
</a>
197200
<span
201+
id={anchorLabelId}
198202
className="MuiApi-item-title algolia-lvl3" // This className is used by Algolia
199203
>
200204
{title}

docs/src/modules/components/ApiPage/list/PropertiesList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ export default function PropertiesList(props: PropertiesListProps) {
157157
<React.Fragment>
158158
{propName}
159159
{isProPlan && (
160-
<a href="/x/introduction/licensing/#pro-plan">
160+
<a href="/x/introduction/licensing/#pro-plan" aria-label="Pro plan">
161161
<span className="plan-pro" />
162162
</a>
163163
)}
164164
{isPremiumPlan && (
165-
<a href="/x/introduction/licensing/#premium-plan">
165+
<a href="/x/introduction/licensing/#premium-plan" aria-label="Premium plan">
166166
<span className="plan-premium" />
167167
</a>
168168
)}

docs/src/modules/components/ApiPage/table/PropertiesTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ export default function PropertiesTable(props: PropertiesTableProps) {
168168
{isRequired ? '*' : ''}
169169
{isOptional ? '?' : ''}
170170
{isProPlan && (
171-
<a href="/x/introduction/licensing/#pro-plan">
171+
<a href="/x/introduction/licensing/#pro-plan" aria-label="Pro plan">
172172
<span className="plan-pro" />
173173
</a>
174174
)}
175175
{isPremiumPlan && (
176-
<a href="/x/introduction/licensing/#premium-plan">
176+
<a href="/x/introduction/licensing/#premium-plan" aria-label="Premium plan">
177177
<span className="plan-premium" />
178178
</a>
179179
)}

docs/src/modules/components/MaterialShowcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export default function Showcase() {
489489
}),
490490
})}
491491
>
492-
<a href={app.link} rel="noopener nofollow" target="_blank">
492+
<a href={app.link} rel="noopener nofollow" target="_blank" aria-label={app.title}>
493493
<CardMedia
494494
component="img"
495495
loading="lazy"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"eslint-plugin-babel": "^5.3.1",
151151
"eslint-plugin-filenames": "^1.3.2",
152152
"eslint-plugin-import": "^2.29.1",
153-
"eslint-plugin-jsx-a11y": "^6.7.1",
153+
"eslint-plugin-jsx-a11y": "6.7.1",
154154
"eslint-plugin-material-ui": "workspace:^",
155155
"eslint-plugin-mocha": "^10.5.0",
156156
"eslint-plugin-react": "^7.35.0",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)