Snackbar: misc improvements #45824
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
Following up from #45472
SnackbarList
is not very well-documented (it doesn't even have a README) and prior to this PR, didn't have Storybook examples either. We should re-organize the folder structure, improve the docs and come up with a better Storybook strategy (e.g. use subcomponents and mergeSnackbar
andSnackbarList
in the same file)Notice
component to TypeScript and re-use its types inSnackbar
Snackbar
s in a list — the secondSnackbar
goes transparent but doesn't get fully removedSnackbar
to be dismissed works in a bit of an unexpected way (snackbar items don't get dismissed in orderisDismissible
prop from notice data is not taken into account bySnackbar
(although this could be on purpose)Snackbar
icon (passed through its icon prop) is not vertically centered, doesn't seem to work well with WordPress iconsThe text was updated successfully, but these errors were encountered: