-
Notifications
You must be signed in to change notification settings - Fork 830
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
Accept additional props for labeling icons #907
Comments
@joshblack I think we should also accept all of While we're here, should we also make these ref forwarding? that might bump the peer from >=15 to something higher though. I don't think it's an unreasonable time to do so? |
@mattcosta7 I'd totally be down for the I made #910 to track this. Do you think it'd be something we should try and feature detect to ship it in a minor release or do you think it's worth trying to do a major release for the icons package and increase the deps to >=16.3? |
I haven't tried to feature detect it, but no objections if there's a good path there! |
Came here to file the same issue. It also seems sensible to set the value of |
👋🏻 @green6erry Are you actively working on this ticket? I see a linked PR but that was back in March. I have been working on some octicon changes #943 and might have some capacity to pick this up if you are not planning to continue working on this? Totally cool if you are though! 🙌🏻 Just wanted to ask! |
@green6erry - ping to check out the draft PR and see if we can move it toward review. Thanks! |
We should make sure the React icon components accept additional props for labeling icons, including:
aria-labelledby
<title>
tagFor the title tag, I think we have two options:
title
prop that accepts either astring
orReact.ReactNode
(in case the user wants to provide anid
to thetitle
children
as a prop and users can provide a title as children to the icon componentThe text was updated successfully, but these errors were encountered: