Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Pass through data and aria attributes (#238)
* Add spread operator to pass through props * Use dataOrAttributeProps function instead of omit Credit to DylanVann for dataOrAriaAttributeProps function from https://github.com/react-component/notification/pull/54/files * Add tests for "role" attribute passthrough Co-authored-by: Cameron Hessler <cameron.hessler@buildertrend.com>
- Loading branch information
1 parent
f5e06f9
commit cfd7ac5
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters