-
Notifications
You must be signed in to change notification settings - Fork 597
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
[TreeView] Mark leading action as private and add high-risk warning #5660
Conversation
|
size-limit report 📦
|
<Banner | ||
title="High-risk feature" | ||
description={ | ||
<p> | ||
Usage of LeadingAction is discouraged due to high-accessibility risk. See | ||
<Link inline={true} href="https://github.com/github/primer/issues/3446"> | ||
audit issue (staff only) | ||
</Link> | ||
. | ||
</p> | ||
} | ||
variant="warning" | ||
/> |
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.
Love this ✨ I feel like we could make use of banners in a similar way in other stories that might be encouraging inaccessible patterns.. 👀
931d314
to
594c5eb
Compare
a035846
to
a8f2d37
Compare
packages/react/src/TreeView/TreeViewWithLeadingAction.stories.tsx
Outdated
Show resolved
Hide resolved
@@ -124,7 +124,7 @@ | |||
] | |||
}, | |||
{ | |||
"name": "TreeView.LeadingVisual", | |||
"name": "TreeView.LeadingVisual (Known accessiblity issues. Use at your own risk ⚠️)", |
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.
I think we have the wrong leading component (LeadingAction
), I actually didn't realize there was a LeadingVisual
😅
I'm wondering if we should just remove it docs for LeadingAction
altogether? 🤔 Either way is good!
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.
Nice catch! I've decided to just remove it :)
Closes: https://github.com/github/accessibility-audits/issues/10114
Changelog
Changed
Overlay
.Rollout strategy
Merge checklist