Skip to content

Commit

Permalink
fix: bump patternfly-a11y dependency (#11166)
Browse files Browse the repository at this point in the history
* fix: bump patternfly-a11y dependency

* fix linting issue
  • Loading branch information
nicolethoen authored Nov 7, 2024
1 parent 6dfe06d commit 79e3652
Show file tree
Hide file tree
Showing 3 changed files with 373 additions and 125 deletions.
2 changes: 1 addition & 1 deletion packages/react-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@patternfly/documentation-framework": "^6.0.0-alpha.106",
"@patternfly/patternfly-a11y": "4.3.1"
"@patternfly/patternfly-a11y": "5.0.0"
},
"keywords": [
"gatsby"
Expand Down
5 changes: 5 additions & 0 deletions packages/react-docs/patternfly-a11y.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ const urls = Object.keys(fullscreenRoutes)
) {
return path.replace(/\/react-demos$/, '');
}
// some components have their default tab as trailing 'react-deprecated'
} else if (path.match(/\/components\/.*\/react-deprecated$/g)) {
if (path.includes('/tile/') || path.includes('/chip/')) {
return path.replace(/\/react-deprecated$/, '');
}
}
// all other pages in the components section have a trailing 'react' string in their default tab
return path.replace(/\/react$/, '');
Expand Down
Loading

0 comments on commit 79e3652

Please sign in to comment.