-
Notifications
You must be signed in to change notification settings - Fork 152
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
feat(CountryFlag): add role prop for accessibility customization #4556
feat(CountryFlag): add role prop for accessibility customization #4556
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Storybook staging is available at https://kiwicom-orbit-devin-1734607804-add-role-prop-countryflag.surge.sh |
Size Change: +13 B (0%) Total Size: 460 kB
ℹ️ View Unchanged
|
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.
We should add a control for the new prop in the storybook story for CountryFlag
57e0fea
to
b54435f
Compare
b54435f
to
dd6b7bc
Compare
dd6b7bc
to
15cefcc
Compare
Co-Authored-By: Jozef Képesi <[email protected]>
15cefcc
to
6f91065
Compare
Added role prop to CountryFlag component to allow customizing the ARIA role of the underlying img element.
Link to Devin run: https://app.devin.ai/sessions/7f5e6966a6ab4b08a495ed623bc32d1b
✨
Description by Callstackai
This PR adds a
role
prop to theCountryFlag
component, allowing customization of the ARIA role for accessibility. It includes updates to types, documentation, and test coverage while maintaining backward compatibility.Diagrams of code changes
Files Changed
role
prop with default value 'img' to the story.role
prop.role
.CountryFlag
component to accept and apply therole
prop.role
prop.This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.md
. See list of supported languages.