forked from radix-ui/primitives
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Slot] Fix children expectation when using
Slottable
(radix-ui#1376)
* [Slot] Fix children expectation when using Slottable Fixes radix-ui#1261 * Fix regression caught by Chromatic * Add tests * Replace with snapshot tests * PR feedback
- Loading branch information
1 parent
5a6ee45
commit ec106c3
Showing
5 changed files
with
241 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
releases: | ||
"@radix-ui/react-accessible-icon": patch | ||
"@radix-ui/react-accordion": patch | ||
"@radix-ui/react-alert-dialog": patch | ||
"@radix-ui/react-announce": patch | ||
"@radix-ui/react-arrow": patch | ||
"@radix-ui/react-aspect-ratio": patch | ||
"@radix-ui/react-avatar": patch | ||
"@radix-ui/react-checkbox": patch | ||
"@radix-ui/react-collapsible": patch | ||
"@radix-ui/react-collection": patch | ||
"@radix-ui/react-context-menu": patch | ||
"@radix-ui/react-dialog": patch | ||
"@radix-ui/react-dismissable-layer": patch | ||
"@radix-ui/react-dropdown-menu": patch | ||
"@radix-ui/react-focus-scope": patch | ||
"@radix-ui/react-hover-card": patch | ||
"@radix-ui/react-label": patch | ||
"@radix-ui/react-menu": patch | ||
"@radix-ui/react-navigation-menu": patch | ||
"@radix-ui/react-popover": patch | ||
"@radix-ui/react-popper": patch | ||
"@radix-ui/react-portal": patch | ||
"@radix-ui/react-primitive": patch | ||
"@radix-ui/react-progress": patch | ||
"@radix-ui/react-radio-group": patch | ||
"@radix-ui/react-roving-focus": patch | ||
"@radix-ui/react-scroll-area": patch | ||
"@radix-ui/react-select": patch | ||
"@radix-ui/react-separator": patch | ||
"@radix-ui/react-slider": patch | ||
"@radix-ui/react-slot": patch | ||
"@radix-ui/react-switch": patch | ||
"@radix-ui/react-tabs": patch | ||
"@radix-ui/react-toast": patch | ||
"@radix-ui/react-toggle": patch | ||
"@radix-ui/react-toggle-group": patch | ||
"@radix-ui/react-toolbar": patch | ||
"@radix-ui/react-tooltip": patch | ||
"@radix-ui/react-visually-hidden": patch | ||
|
||
declined: | ||
- primitives |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`given a Button with Slottable with asChild should render a link with icon on the left/right 1`] = ` | ||
<div> | ||
<a | ||
href="https://radix-ui.com" | ||
> | ||
<span> | ||
left | ||
</span> | ||
Button | ||
<em> | ||
text | ||
</em> | ||
<span> | ||
right | ||
</span> | ||
</a> | ||
</div> | ||
`; | ||
|
||
exports[`given a Button with Slottable without asChild should render a button with icon on the left/right 1`] = ` | ||
<div> | ||
<button> | ||
<span> | ||
left | ||
</span> | ||
Button | ||
<em> | ||
text | ||
</em> | ||
<span> | ||
right | ||
</span> | ||
</button> | ||
</div> | ||
`; |