-
Notifications
You must be signed in to change notification settings - Fork 134
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
fix: allow data-* and aria-* attributes #344
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/Collapse.tsx
Outdated
@@ -81,6 +82,7 @@ const Collapse = React.forwardRef<HTMLDivElement, CollapseProps>((props, ref) => | |||
className={collapseClassName} | |||
style={style} | |||
role={accordion ? 'tablist' : undefined} | |||
{...restProps} |
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.
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.
Sure! Thank you, done
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #344 +/- ##
=======================================
Coverage 99.12% 99.12%
=======================================
Files 5 5
Lines 114 114
Branches 40 40
=======================================
Hits 113 113
Misses 1 1 ☔ View full report in Codecov by Sentry. |
To allow aria-* and data-* attributes we need to pass spread props inside of container as we're doing for other RC components as I see