Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(a11y): update logic for determining URLs to test#5705

Merged
mcoker merged 1 commit intopatternfly:mainfrom
nicolethoen:update_a11y_v5
Aug 3, 2023
Merged

chore(a11y): update logic for determining URLs to test#5705
mcoker merged 1 commit intopatternfly:mainfrom
nicolethoen:update_a11y_v5

Conversation

@nicolethoen
Copy link
Contributor

Closes: #5704

@patternfly-build
Copy link
Collaborator

patternfly-build commented Jul 3, 2023

@nicolethoen nicolethoen requested a review from mcoker July 17, 2023 12:28
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just one thing, seems like we might be missing context selector in this group?

if (path.match(/\/patterns\/.*\/html-demos$/g)) {
return path.replace(/\/html-demos$/, '');
} else {
if (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add context selector here? BTW - not sure if this is an issue but the demo page shows up first now, maybe that's intentional since the demos are still valid - they would just ideally be built using menu/menu toggle. Since core isn't going to have a context selector component, I don't know if the context selector demos belong there though. Or maybe the nav link needs a "demo" badge, like password strength/generator?

@nicolethoen
Copy link
Contributor Author

so, context-selector has html demos as its default tab. Its case in handled on line 13 of this file and its the only deprecated component which has any demos at all.

the context-selector demos use the deprecated context-selector. I think that's the only place where that's the case, because generally, we've rewritten old demos to use recommended/non-deprecated components, so we do want them to appear before the deprecated component docs. The context-selector docs is the exception to that rule. Tab order is defined in the documentation-framework.

@mcoker mcoker merged commit 67dc436 into patternfly:main Aug 3, 2023
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 5.1.0-prerelease.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up a11y testing hitting bad URLs

3 participants