-
Notifications
You must be signed in to change notification settings - Fork 375
fix(SkipToContent): Updated markup #8650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Preview: https://patternfly-react-pr-8650.surge.sh A11y report: https://patternfly-react-pr-8650-a11y.surge.sh |
packages/react-core/src/components/SkipToContent/SkipToContent.tsx
Outdated
Show resolved
Hide resolved
mcoker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - a question about using the button component. Also there is a show prop that says it's used for demo purposes - do we have a use case for that or could we remove it?
packages/react-core/src/components/SkipToContent/SkipToContent.tsx
Outdated
Show resolved
Hide resolved
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a snapshot update/and a linting error that needs to be resolved, otherwise looks good
mcoker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the linting
| ...props | ||
| }: SkipToContentProps) => ( | ||
| <div className={css(styles.skipToContent, className)} {...props}> | ||
| <Button variant={ButtonVariant.primary} component='a' href={href}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <Button variant={ButtonVariant.primary} component='a' href={href}> | |
| <Button variant={ButtonVariant.primary} component="a" href={href}> |
5240ce4 to
1e24b1f
Compare
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #8260
Moves the
pf-c-skip-to-contentclass off of theButtonand onto a div wrapping theButton.