Skip to content

Commit 79e3652

Browse files
authored
fix: bump patternfly-a11y dependency (#11166)
* fix: bump patternfly-a11y dependency * fix linting issue
1 parent 6dfe06d commit 79e3652

File tree

3 files changed

+373
-125
lines changed

3 files changed

+373
-125
lines changed

packages/react-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"devDependencies": {
3939
"@patternfly/documentation-framework": "^6.0.0-alpha.106",
40-
"@patternfly/patternfly-a11y": "4.3.1"
40+
"@patternfly/patternfly-a11y": "5.0.0"
4141
},
4242
"keywords": [
4343
"gatsby"

packages/react-docs/patternfly-a11y.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ const urls = Object.keys(fullscreenRoutes)
3333
) {
3434
return path.replace(/\/react-demos$/, '');
3535
}
36+
// some components have their default tab as trailing 'react-deprecated'
37+
} else if (path.match(/\/components\/.*\/react-deprecated$/g)) {
38+
if (path.includes('/tile/') || path.includes('/chip/')) {
39+
return path.replace(/\/react-deprecated$/, '');
40+
}
3641
}
3742
// all other pages in the components section have a trailing 'react' string in their default tab
3843
return path.replace(/\/react$/, '');

0 commit comments

Comments
 (0)