Skip to content
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

Slot: add styles prop to bubblesVirtually version #56428

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

### Internal

- `Slot`: add `styles` prop to `bubblesVirtually` version ([#56428](https://github.com/WordPress/gutenberg/pull/56428))
ciampo marked this conversation as resolved.
Show resolved Hide resolved
ciampo marked this conversation as resolved.
Show resolved Hide resolved
- Migrate `Divider` from `reakit` to `ariakit` ([#55622](https://github.com/WordPress/gutenberg/pull/55622))
- Migrate `DisclosureContent` from `reakit` to `ariakit` and TypeScript ([#55639](https://github.com/WordPress/gutenberg/pull/55639))
- Migrate `RadioGroup` from `reakit` to `ariakit` and TypeScript ([#55580](https://github.com/WordPress/gutenberg/pull/55580))
Expand Down
20 changes: 16 additions & 4 deletions packages/components/src/slot-fill/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ export type SlotComponentProps =

/**
* A function that returns nodes to be rendered.
* Not supported when `bubblesVirtually` is true.
* Not supported when `bubblesVirtually` is `true`.
*/
children?: never;

/**
* className.
* Not supported when `bubblesVirtually` is true.
* Not supported when `bubblesVirtually` is `false`.
ciampo marked this conversation as resolved.
Show resolved Hide resolved
*/
className?: string;

/**
* styles.
ciampo marked this conversation as resolved.
Show resolved Hide resolved
* Not supported when `bubblesVirtually` is `false`.
*/
style?: React.CSSProperties;
} )
| ( SlotPropBase & {
/**
Expand All @@ -56,15 +62,21 @@ export type SlotComponentProps =

/**
* A function that returns nodes to be rendered.
* Not supported when `bubblesVirtually` is true.
* Not supported when `bubblesVirtually` is `true`.
*/
children?: ( fills: ReactNode ) => ReactNode;

/**
* className.
* Not supported when `bubblesVirtually` is false.
* Not supported when `bubblesVirtually` is `false`.
*/
className?: never;

/**
* styles.
ciampo marked this conversation as resolved.
Show resolved Hide resolved
* Not supported when `bubblesVirtually` is `false`.
*/
style?: never;
} );

export type FillComponentProps = {
Expand Down
Loading