diff --git a/docs/designers-developers/developers/data/data-core-notices.md b/docs/designers-developers/developers/data/data-core-notices.md index 5ae7f1fb000679..b7ea283f02687f 100644 --- a/docs/designers-developers/developers/data/data-core-notices.md +++ b/docs/designers-developers/developers/data/data-core-notices.md @@ -32,11 +32,6 @@ Yields action objects used in signalling that a notice is to be created. * options.isDismissible: Whether the notice can be dismissed by user. Defaults to `true`. - * options.speak: Whether the notice - content should be - announced to screen - readers. Defaults to - `true`. * options.actions: User actions to be presented with notice. diff --git a/lib/packages-dependencies.php b/lib/packages-dependencies.php index 34c70851ff727c..74f54a6e2c0afe 100644 --- a/lib/packages-dependencies.php +++ b/lib/packages-dependencies.php @@ -124,7 +124,6 @@ 'wp-embed', 'wp-i18n', 'wp-keycodes', - 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-url', diff --git a/packages/components/src/notice/index.js b/packages/components/src/notice/index.js index 90b2d908deee92..616774ec99915c 100644 --- a/packages/components/src/notice/index.js +++ b/packages/components/src/notice/index.js @@ -8,7 +8,6 @@ import classnames from 'classnames'; * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { RawHTML } from '@wordpress/element'; /** * Internal dependencies @@ -22,16 +21,11 @@ function Notice( { onRemove = noop, isDismissible = true, actions = [], - __unstableHTML, } ) { const classes = classnames( className, 'components-notice', 'is-' + status, { 'is-dismissible': isDismissible, } ); - if ( __unstableHTML ) { - children = { children }; - } - return (
My notice text
My second line of text