Skip to content

Snackbar: Remove __unstableHTML prop from TS - #57218

Merged
mirka merged 2 commits into
trunkfrom
fix/snackbar-ts
Dec 19, 2023
Merged

mirka merged 2 commits into
trunkfrom
fix/snackbar-ts

Conversation

@mirka

@mirka mirka commented Dec 19, 2023

Copy link
Copy Markdown
Member

Fixes #56767

What?

Removes the __unstableHTML prop from the TypeScript type definitions for Snackbar, which was erroneously included from the Notice types.

Why?

The feature has never been implemented for Snackbar, and a discussion in #57067 led us to decide to keep it unimplemented for now.

Testing Instructions

See that __unstableHTML is no longer included in the props table for the Snackbar Storybook docs. Alternatively, verify in your IDE that adding a __unstableHTML prop to a Snackbar results in a TS error.

@mirka mirka added [Type] Developer Documentation Documentation for developers [Package] Components /packages/components labels Dec 19, 2023
@mirka mirka self-assigned this Dec 19, 2023
@mirka
mirka requested a review from ajitbohra as a code owner December 19, 2023 13:28
@mirka
mirka requested review from a team and ntsekouras December 19, 2023 13:30

@ntsekouras ntsekouras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Lena!

@mirka
mirka merged commit 1dedeab into trunk Dec 19, 2023
@mirka
mirka deleted the fix/snackbar-ts branch December 19, 2023 16:37
@github-actions github-actions Bot added this to the Gutenberg 17.4 milestone Dec 19, 2023
artemiomorales pushed a commit that referenced this pull request Jan 4, 2024
* Snackbar: Remove `__unstableHTML` prop from TS

* Add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notices - __unstableHTML works for default, but not in snackbar

2 participants