setIsSearching( true ) }
ref={ searchButtonRef }
diff --git a/packages/components/src/navigation/stories/controlled-state.js b/packages/components/src/navigation/stories/controlled-state.js
index c4aa3aedf02711..ddb4d18f891361 100644
--- a/packages/components/src/navigation/stories/controlled-state.js
+++ b/packages/components/src/navigation/stories/controlled-state.js
@@ -102,7 +102,7 @@ export function ControlledStateStory() {
{
setActiveMenu( 'nested-sub-menu' );
} }
@@ -112,7 +112,7 @@ export function ControlledStateStory() {
{
setActiveItem( 'child-2' );
setActiveMenu( 'sub-menu' );
diff --git a/packages/components/src/notice/README.md b/packages/components/src/notice/README.md
index 4c920f127c0038..418da933749292 100644
--- a/packages/components/src/notice/README.md
+++ b/packages/components/src/notice/README.md
@@ -107,7 +107,7 @@ The following props are used to control the behavior of the component.
- A value of `'assertive'` is to be used for important, and usually time-sensitive, information. It will interrupt anything else the screen reader is announcing in that moment.
- A value of `'polite'` is to be used for advisory information. It should not interrupt what the screen reader is announcing in that moment (the "speech queue") or interrupt the current task.
- `isDismissible`: (boolean) defaults to true, whether the notice should be dismissible or not
-- `actions`: (array) an array of action objects. Each member object should contain a `label` and either a `url` link string or `onClick` callback function. A `className` property can be used to add custom classes to the button styles. The default appearance of the button is inferred based on whether `url` or `onClick` are provided, rendering the button as a link if appropriate. A `noDefaultClasses` property value of `true` will remove all default styling. You can denote a primary button action for a notice by assigning a `isPrimary` value of `true`.
+- `actions`: (array) an array of action objects. Each member object should contain a `label` and either a `url` link string or `onClick` callback function. A `className` property can be used to add custom classes to the button styles. The default appearance of the button is inferred based on whether `url` or `onClick` are provided, rendering the button as a link if appropriate. A `noDefaultClasses` property value of `true` will remove all default styling. You can denote a primary button action for a notice by passing the `variant` property with a value of `primary`.
## Related components
diff --git a/packages/components/src/notice/index.js b/packages/components/src/notice/index.js
index 4a2851b814f1de..9ef46235cfe55c 100644
--- a/packages/components/src/notice/index.js
+++ b/packages/components/src/notice/index.js
@@ -95,19 +95,29 @@ function Notice( {
className: buttonCustomClasses,
label,
isPrimary,
+ variant,
noDefaultClasses = false,
onClick,
url,
},
index
) => {
+ let computedVariant = variant;
+ if ( variant !== 'primary' && ! noDefaultClasses ) {
+ computedVariant = ! url ? 'secondary' : 'link';
+ }
+ if (
+ typeof computedVariant === 'undefined' &&
+ isPrimary
+ ) {
+ computedVariant = 'primary';
+ }
+
return (
More information
Cancel
Submit
diff --git a/packages/components/src/notice/test/index.js b/packages/components/src/notice/test/index.js
index 07841f8c5dc737..8f744ef3acb233 100644
--- a/packages/components/src/notice/test/index.js
+++ b/packages/components/src/notice/test/index.js
@@ -31,7 +31,7 @@ describe( 'Notice', () => {
actions={ [
{ label: 'More information', url: 'https://example.com' },
{ label: 'Cancel', onClick() {} },
- { label: 'Submit', onClick() {}, isPrimary: true },
+ { label: 'Submit', onClick() {}, variant: 'primary' },
] }
>
Example
diff --git a/packages/components/src/placeholder/style.scss b/packages/components/src/placeholder/style.scss
index 68022377dcc582..0958bb5a0b16c1 100644
--- a/packages/components/src/placeholder/style.scss
+++ b/packages/components/src/placeholder/style.scss
@@ -1,4 +1,5 @@
-.components-placeholder.components-placeholder { // This needs specificity to override individual block styles.
+// This needs specificity to override individual block styles.
+.components-placeholder.components-placeholder {
box-sizing: border-box;
position: relative;
padding: 1em;
@@ -106,9 +107,9 @@
}
}
-// Any ` ` component with `isLink` prop will need extra spacing if placed
-// immediately after a button which is *not* an `isLink` style button. This is because
-// `isLink` has no padding so we need to account for this to avoid the buttons butting
+// Any ` ` component with `variant="link"` prop will need extra spacing if placed
+// immediately after a button which is *not* an `variant="link"` style button. This is because
+// `variant="link"` has no padding so we need to account for this to avoid the buttons butting
// up against each other. If it's the last item we don't need a right margin.
.components-placeholder__fieldset .components-button:not(.is-link) ~ .components-button.is-link {
margin-left: 10px; // equal to standard button inner padding
@@ -121,7 +122,6 @@
// Element queries to show different layouts at various sizes.
.components-placeholder {
-
// Medium and large sizes.
&.is-large {
.components-placeholder__label {
diff --git a/packages/components/src/popover/README.md b/packages/components/src/popover/README.md
index afb70fc9754aab..2518f35ea8bd3c 100644
--- a/packages/components/src/popover/README.md
+++ b/packages/components/src/popover/README.md
@@ -17,7 +17,7 @@ const MyPopover = withState( {
setState( ( state ) => ( { isVisible: ! state.isVisible } ) );
};
return (
-
+
Toggle Popover!
{ isVisible && Popover is toggled! }
diff --git a/packages/components/src/popover/stories/index.js b/packages/components/src/popover/stories/index.js
index 5fc1c09b278b3a..3986a5bad8ec4e 100644
--- a/packages/components/src/popover/stories/index.js
+++ b/packages/components/src/popover/stories/index.js
@@ -118,7 +118,7 @@ function DynamicHeightPopover() {
-
+
Decrease Size
diff --git a/packages/components/src/radio/index.js b/packages/components/src/radio/index.js
index 6d7305002e3fce..d7bdefbe608c9b 100644
--- a/packages/components/src/radio/index.js
+++ b/packages/components/src/radio/index.js
@@ -22,8 +22,7 @@ function Radio( { children, value, ...props }, ref ) {
diff --git a/packages/components/src/scroll-lock/README.md b/packages/components/src/scroll-lock/README.md
index cdafa3dc415ada..f3912df94eb645 100644
--- a/packages/components/src/scroll-lock/README.md
+++ b/packages/components/src/scroll-lock/README.md
@@ -18,7 +18,7 @@ const MyScrollLock = withState( {
};
return (
-
+
Toggle scroll lock
{ isScrollLocked && }
diff --git a/packages/components/src/scroll-lock/stories/index.js b/packages/components/src/scroll-lock/stories/index.js
index ead007d69a9287..9a9de3584e465c 100644
--- a/packages/components/src/scroll-lock/stories/index.js
+++ b/packages/components/src/scroll-lock/stories/index.js
@@ -19,7 +19,7 @@ const Example = () => {
Start scrolling down...
-
+
Toggle Scroll Lock
{ isScrollLocked && }
diff --git a/packages/components/src/snackbar/index.js b/packages/components/src/snackbar/index.js
index 84f78aee2ffd9a..30633e879120c4 100644
--- a/packages/components/src/snackbar/index.js
+++ b/packages/components/src/snackbar/index.js
@@ -130,7 +130,7 @@ function Snackbar(
onActionClick( event, onClick )
}
diff --git a/packages/components/src/tree-grid/stories/index.js b/packages/components/src/tree-grid/stories/index.js
index ec79dfc60ffc35..e32690c45832cd 100644
--- a/packages/components/src/tree-grid/stories/index.js
+++ b/packages/components/src/tree-grid/stories/index.js
@@ -65,7 +65,7 @@ const Rows = ( { items, level = 1 } ) => {
{ ( props ) => (
<>
-
+
{ item.name }
>
@@ -73,14 +73,14 @@ const Rows = ( { items, level = 1 } ) => {
{ ( props ) => (
-
+
Move Up
) }
{ ( props ) => (
-
+
Move Down
) }
diff --git a/packages/customize-widgets/src/components/header/index.js b/packages/customize-widgets/src/components/header/index.js
index 6143da620e3357..b23c75de1d7ed6 100644
--- a/packages/customize-widgets/src/components/header/index.js
+++ b/packages/customize-widgets/src/components/header/index.js
@@ -76,7 +76,7 @@ function Header( {
toggleFeature( 'welcomeGuide' ) }
>
{ __( 'Got it' ) }
diff --git a/packages/e2e-tests/plugins/hooks-api/index.js b/packages/e2e-tests/plugins/hooks-api/index.js
index 6429cfe35015d2..fbbfa27c471648 100644
--- a/packages/e2e-tests/plugins/hooks-api/index.js
+++ b/packages/e2e-tests/plugins/hooks-api/index.js
@@ -16,7 +16,7 @@
Button,
{
className: 'e2e-reset-block-button',
- isSecondary: true,
+ variant: "secondary",
isLarge: true,
onClick: function() {
var emptyBlock = createBlock( props.name );
diff --git a/packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js b/packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js
index 88ff01965f9762..f631c4e9373649 100644
--- a/packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js
+++ b/packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js
@@ -59,7 +59,7 @@
el(
Button,
{
- isPrimary: true,
+ variant: "primary",
onClick: () => {
dispatch( 'core/annotations' ).__experimentalAddAnnotation( {
source: 'e2e-tests',
@@ -77,7 +77,7 @@
el(
Button,
{
- isPrimary: true,
+ variant: "primary",
onClick: () => {
dispatch( 'core/annotations' ).__experimentalRemoveAnnotationsBySource( 'e2e-tests' );
}
diff --git a/packages/e2e-tests/plugins/plugins-api/sidebar.js b/packages/e2e-tests/plugins/plugins-api/sidebar.js
index 0fc9ccd34f5d13..da6397196fb95f 100644
--- a/packages/e2e-tests/plugins/plugins-api/sidebar.js
+++ b/packages/e2e-tests/plugins/plugins-api/sidebar.js
@@ -42,7 +42,7 @@
el(
Button,
{
- isPrimary: true,
+ variant:"primary",
onClick: props.resetTitle,
},
__( 'Reset' )
diff --git a/packages/edit-navigation/src/components/add-menu/index.js b/packages/edit-navigation/src/components/add-menu/index.js
index 0e21f6cf045d96..9843b6a051b993 100644
--- a/packages/edit-navigation/src/components/add-menu/index.js
+++ b/packages/edit-navigation/src/components/add-menu/index.js
@@ -92,7 +92,7 @@ export default function AddMenu( {
diff --git a/packages/edit-navigation/src/components/error-boundary/index.js b/packages/edit-navigation/src/components/error-boundary/index.js
index d466e3e7c4acfc..bea03d909c380d 100644
--- a/packages/edit-navigation/src/components/error-boundary/index.js
+++ b/packages/edit-navigation/src/components/error-boundary/index.js
@@ -37,7 +37,11 @@ class ErrorBoundary extends Component {
+
{ __( 'Attempt Recovery' ) }
,
] }
diff --git a/packages/edit-navigation/src/components/header/index.js b/packages/edit-navigation/src/components/header/index.js
index 41177d5bded10e..c923caf5b17676 100644
--- a/packages/edit-navigation/src/components/header/index.js
+++ b/packages/edit-navigation/src/components/header/index.js
@@ -56,7 +56,7 @@ export default function Header( {
'Switch menu, or create a new menu'
),
showTooltip: false,
- isTertiary: true,
+ variant: 'tertiary',
disabled: ! menus?.length,
__experimentalIsFocusable: true,
} }
diff --git a/packages/edit-navigation/src/components/header/save-button.js b/packages/edit-navigation/src/components/header/save-button.js
index 0ab895f6746dec..ed255851a22ef1 100644
--- a/packages/edit-navigation/src/components/header/save-button.js
+++ b/packages/edit-navigation/src/components/header/save-button.js
@@ -28,7 +28,7 @@ export default function SaveButton( { navigationPost } ) {
return (
{
saveNavigationPost( navigationPost );
} }
diff --git a/packages/edit-navigation/src/components/menu-switcher/index.js b/packages/edit-navigation/src/components/menu-switcher/index.js
index 5830b74dc02ee1..68162e433a7d63 100644
--- a/packages/edit-navigation/src/components/menu-switcher/index.js
+++ b/packages/edit-navigation/src/components/menu-switcher/index.js
@@ -47,7 +47,7 @@ export default function MenuSwitcher( {
/>
-
+
{ __( 'Create a new menu' ) }
{ isModalVisible && (
diff --git a/packages/edit-navigation/src/components/sidebar/delete-menu.js b/packages/edit-navigation/src/components/sidebar/delete-menu.js
index 717279419a5958..c6008bada77051 100644
--- a/packages/edit-navigation/src/components/sidebar/delete-menu.js
+++ b/packages/edit-navigation/src/components/sidebar/delete-menu.js
@@ -9,7 +9,7 @@ export default function DeleteMenu( { onDeleteMenu, isMenuBeingDeleted } ) {
{
diff --git a/packages/edit-navigation/src/components/sidebar/manage-locations.js b/packages/edit-navigation/src/components/sidebar/manage-locations.js
index b2bb9e8d1eb136..9058e2332e02eb 100644
--- a/packages/edit-navigation/src/components/sidebar/manage-locations.js
+++ b/packages/edit-navigation/src/components/sidebar/manage-locations.js
@@ -115,7 +115,7 @@ export default function ManageLocations( {
} }
/>
{
event.preventDefault();
@@ -138,19 +138,21 @@ function HeaderToolbar() {
) }
{ overflowItems }
>
diff --git a/packages/edit-post/src/components/header/more-menu/index.js b/packages/edit-post/src/components/header/more-menu/index.js
index 90b3ba3675832a..17b763b26f3749 100644
--- a/packages/edit-post/src/components/header/more-menu/index.js
+++ b/packages/edit-post/src/components/header/more-menu/index.js
@@ -35,7 +35,7 @@ const MoreMenu = ( { showIconLabels } ) => {
popoverProps={ POPOVER_PROPS }
toggleProps={ {
showTooltip: ! showIconLabels,
- isTertiary: showIconLabels,
+ ...( showIconLabels && { variant: 'tertiary' } ),
...TOGGLE_PROPS,
} }
>
diff --git a/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap b/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
index af117caedc07b9..9ffdb5a699ff04 100644
--- a/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
+++ b/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
@@ -23,7 +23,6 @@ exports[`MoreMenu should match snapshot 1`] = `
}
toggleProps={
Object {
- "isTertiary": undefined,
"showTooltip": true,
"tooltipPosition": "bottom",
}
diff --git a/packages/edit-post/src/components/header/template-title/delete-template.js b/packages/edit-post/src/components/header/template-title/delete-template.js
index 7a3f5d5c382073..7daf7da26aa4f3 100644
--- a/packages/edit-post/src/components/header/template-title/delete-template.js
+++ b/packages/edit-post/src/components/header/template-title/delete-template.js
@@ -46,8 +46,7 @@ export default function DeleteTemplate() {
{
if (
diff --git a/packages/edit-post/src/components/header/template-title/index.js b/packages/edit-post/src/components/header/template-title/index.js
index d3d95f8d30b494..9aa21c0f27121d 100644
--- a/packages/edit-post/src/components/header/template-title/index.js
+++ b/packages/edit-post/src/components/header/template-title/index.js
@@ -49,7 +49,7 @@ function TemplateTitle() {
diff --git a/packages/edit-post/src/components/layout/actions-panel.js b/packages/edit-post/src/components/layout/actions-panel.js
index a5b61bafd5c007..3c5f708e27e773 100644
--- a/packages/edit-post/src/components/layout/actions-panel.js
+++ b/packages/edit-post/src/components/layout/actions-panel.js
@@ -65,7 +65,7 @@ export default function ActionsPanel( {
unmountableContent = (
{
diff --git a/packages/edit-post/src/components/sidebar/post-schedule/index.js b/packages/edit-post/src/components/sidebar/post-schedule/index.js
index 6d99ccf506141a..ea786d031b3d8e 100644
--- a/packages/edit-post/src/components/sidebar/post-schedule/index.js
+++ b/packages/edit-post/src/components/sidebar/post-schedule/index.js
@@ -27,7 +27,7 @@ export function PostSchedule() {
className="edit-post-post-schedule__toggle"
onClick={ onToggle }
aria-expanded={ isOpen }
- isTertiary
+ variant="tertiary"
>
diff --git a/packages/edit-post/src/components/sidebar/post-visibility/index.js b/packages/edit-post/src/components/sidebar/post-visibility/index.js
index 2eacd4d3042aab..35043102f0e9e5 100644
--- a/packages/edit-post/src/components/sidebar/post-visibility/index.js
+++ b/packages/edit-post/src/components/sidebar/post-visibility/index.js
@@ -29,7 +29,7 @@ export function PostVisibility() {
aria-expanded={ isOpen }
className="edit-post-post-visibility__toggle"
onClick={ onToggle }
- isTertiary
+ variant="tertiary"
>
diff --git a/packages/edit-post/src/components/sidebar/template/actions.js b/packages/edit-post/src/components/sidebar/template/actions.js
index 2568f4881f3b25..ab9884b1638d8c 100644
--- a/packages/edit-post/src/components/sidebar/template/actions.js
+++ b/packages/edit-post/src/components/sidebar/template/actions.js
@@ -55,13 +55,13 @@ function PostTemplateActions() {
{ !! template && (
__unstableSwitchToTemplateMode() }
>
{ __( 'Edit' ) }
) }
- setIsModalOpen( true ) }>
+ setIsModalOpen( true ) }>
{ __( 'New' ) }
@@ -107,7 +107,7 @@ function PostTemplateActions() {
>
{
setIsModalOpen( false );
setTitle( '' );
@@ -117,7 +117,7 @@ function PostTemplateActions() {
-
+
{ __( 'Create' ) }
diff --git a/packages/edit-post/src/components/text-editor/index.js b/packages/edit-post/src/components/text-editor/index.js
index c056b72a30ea68..c5191c2e561195 100644
--- a/packages/edit-post/src/components/text-editor/index.js
+++ b/packages/edit-post/src/components/text-editor/index.js
@@ -24,7 +24,7 @@ function TextEditor( { onExit, isRichEditingEnabled } ) {
{ __( 'Editing code' ) }
diff --git a/packages/edit-post/src/hooks/validate-multiple-use/index.js b/packages/edit-post/src/hooks/validate-multiple-use/index.js
index 58700ac6cf7be6..00b6fc63bef21c 100644
--- a/packages/edit-post/src/hooks/validate-multiple-use/index.js
+++ b/packages/edit-post/src/hooks/validate-multiple-use/index.js
@@ -78,14 +78,14 @@ const withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {
actions={ [
{ __( 'Find original' ) }
,
props.onReplace( [] ) }
>
{ __( 'Remove' ) }
@@ -93,7 +93,7 @@ const withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {
outboundType && (
props.onReplace(
createBlock(
diff --git a/packages/edit-site/src/components/editor/index.js b/packages/edit-site/src/components/editor/index.js
index f02348d10f8d7d..557e8dfa8e225b 100644
--- a/packages/edit-site/src/components/editor/index.js
+++ b/packages/edit-site/src/components/editor/index.js
@@ -251,7 +251,7 @@ function Editor( { initialSettings } ) {
) : (
{
diff --git a/packages/edit-site/src/components/navigation-sidebar/navigation-panel/new-template-dropdown.js b/packages/edit-site/src/components/navigation-sidebar/navigation-panel/new-template-dropdown.js
index 127238e481f9e9..a0e3ee5a0062d3 100644
--- a/packages/edit-site/src/components/navigation-sidebar/navigation-panel/new-template-dropdown.js
+++ b/packages/edit-site/src/components/navigation-sidebar/navigation-panel/new-template-dropdown.js
@@ -81,7 +81,7 @@ export default function NewTemplateDropdown() {
toggleProps={ {
children: ,
isSmall: true,
- isTertiary: true,
+ variant: 'tertiary',
} }
>
{ ( { onClose } ) => (
diff --git a/packages/edit-site/src/components/save-button/index.js b/packages/edit-site/src/components/save-button/index.js
index d32ce9ac5acc17..274048987b359f 100644
--- a/packages/edit-site/src/components/save-button/index.js
+++ b/packages/edit-site/src/components/save-button/index.js
@@ -34,7 +34,7 @@ export default function SaveButton( {
return (
<>
diff --git a/packages/edit-site/src/components/template-part-converter/convert-to-template-part.js b/packages/edit-site/src/components/template-part-converter/convert-to-template-part.js
index 863a6b2eabbaf5..c43bb4d77640b1 100644
--- a/packages/edit-site/src/components/template-part-converter/convert-to-template-part.js
+++ b/packages/edit-site/src/components/template-part-converter/convert-to-template-part.js
@@ -169,7 +169,7 @@ export default function ConvertToTemplatePart( { clientIds, blocks } ) {
>
{
setIsModalOpen( false );
setTitle( '' );
@@ -179,7 +179,7 @@ export default function ConvertToTemplatePart( { clientIds, blocks } ) {
-
+
{ __( 'Create' ) }
diff --git a/packages/edit-widgets/src/components/header/index.js b/packages/edit-widgets/src/components/header/index.js
index c0475441002a25..3a67e7999482a4 100644
--- a/packages/edit-widgets/src/components/header/index.js
+++ b/packages/edit-widgets/src/components/header/index.js
@@ -87,7 +87,7 @@ function Header() {
ref={ inserterButton }
as={ Button }
className="edit-widgets-header-toolbar__inserter-toggle"
- isPrimary
+ variant="primary"
isPressed={ isInserterOpened }
onMouseDown={ ( event ) => {
event.preventDefault();
diff --git a/packages/edit-widgets/src/components/save-button/index.js b/packages/edit-widgets/src/components/save-button/index.js
index 60af723800c506..607a928416772c 100644
--- a/packages/edit-widgets/src/components/save-button/index.js
+++ b/packages/edit-widgets/src/components/save-button/index.js
@@ -25,7 +25,7 @@ function SaveButton() {
return (
{ __( 'Manage with live preview' ) }
diff --git a/packages/editor/src/components/entities-saved-states/index.js b/packages/editor/src/components/entities-saved-states/index.js
index af233aec56f264..0015cdecd6435c 100644
--- a/packages/editor/src/components/entities-saved-states/index.js
+++ b/packages/editor/src/components/entities-saved-states/index.js
@@ -141,7 +141,7 @@ export default function EntitiesSavedStates( { close } ) {
+
{ children }
);
@@ -59,7 +59,11 @@ class ErrorBoundary extends Component {
+
{ __( 'Attempt Recovery' ) }
,
diff --git a/packages/editor/src/components/post-featured-image/index.js b/packages/editor/src/components/post-featured-image/index.js
index 6f636bb5a98b8e..519e538c82c2b2 100644
--- a/packages/editor/src/components/post-featured-image/index.js
+++ b/packages/editor/src/components/post-featured-image/index.js
@@ -188,7 +188,7 @@ function PostFeaturedImage( {
allowedTypes={ ALLOWED_MEDIA_TYPES }
modalClass="editor-post-featured-image__media-modal"
render={ ( { open } ) => (
-
+
{ __( 'Replace Image' ) }
) }
@@ -197,7 +197,11 @@ function PostFeaturedImage( {
) }
{ !! featuredImageId && (
-
+
{ postLabel.remove_featured_image ||
DEFAULT_REMOVE_FEATURE_IMAGE_LABEL }
diff --git a/packages/editor/src/components/post-format/index.js b/packages/editor/src/components/post-format/index.js
index 57620a32b9025e..9f945f997f8d0c 100644
--- a/packages/editor/src/components/post-format/index.js
+++ b/packages/editor/src/components/post-format/index.js
@@ -100,7 +100,7 @@ export default function PostFormat() {
{ __( 'Suggestion:' ) }{ ' ' }
onUpdatePostFormat( suggestion.id )
}
diff --git a/packages/editor/src/components/post-locked-modal/index.js b/packages/editor/src/components/post-locked-modal/index.js
index 679d02d3ee3b13..11f80b703a2f1c 100644
--- a/packages/editor/src/components/post-locked-modal/index.js
+++ b/packages/editor/src/components/post-locked-modal/index.js
@@ -194,7 +194,7 @@ export default function PostLockedModal() {
-
+
{ allPostsLabel }
@@ -217,11 +217,11 @@ export default function PostLockedModal() {
-
+
{ allPostsLabel }
-
+
{ __( 'Take Over' ) }
diff --git a/packages/editor/src/components/post-preview-button/index.js b/packages/editor/src/components/post-preview-button/index.js
index d7ee759c8b5d2e..7f51eb03635208 100644
--- a/packages/editor/src/components/post-preview-button/index.js
+++ b/packages/editor/src/components/post-preview-button/index.js
@@ -196,7 +196,7 @@ export class PostPreviewButton extends Component {
return (
Preview
Preview
-
+
{ __( 'Cancel' ) }
diff --git a/packages/editor/src/components/post-publish-panel/maybe-post-format-panel.js b/packages/editor/src/components/post-publish-panel/maybe-post-format-panel.js
index 270d11fe749525..a9b836cb1a873b 100644
--- a/packages/editor/src/components/post-publish-panel/maybe-post-format-panel.js
+++ b/packages/editor/src/components/post-publish-panel/maybe-post-format-panel.js
@@ -27,7 +27,10 @@ const PostFormatSuggestion = ( {
suggestionText,
onUpdatePostFormat,
} ) => (
- onUpdatePostFormat( suggestedPostFormat ) }>
+ onUpdatePostFormat( suggestedPostFormat ) }
+ >
{ suggestionText }
);
diff --git a/packages/editor/src/components/post-publish-panel/postpublish.js b/packages/editor/src/components/post-publish-panel/postpublish.js
index 3be45aefa59461..7c431aa4885f47 100644
--- a/packages/editor/src/components/post-publish-panel/postpublish.js
+++ b/packages/editor/src/components/post-publish-panel/postpublish.js
@@ -42,7 +42,7 @@ const getFuturePostUrl = ( post ) => {
function CopyButton( { text, onCopy, children } ) {
const ref = useCopyToClipboard( text, onCopy );
return (
-
+
{ children }
);
@@ -127,7 +127,7 @@ class PostPublishPanelPostpublish extends Component {
/>
{ ! isScheduled && (
-
+
{ viewPostLabel }
) }
diff --git a/packages/editor/src/components/post-publish-panel/test/__snapshots__/index.js.snap b/packages/editor/src/components/post-publish-panel/test/__snapshots__/index.js.snap
index 601a5876e3102e..7bd560d187275c 100644
--- a/packages/editor/src/components/post-publish-panel/test/__snapshots__/index.js.snap
+++ b/packages/editor/src/components/post-publish-panel/test/__snapshots__/index.js.snap
@@ -95,7 +95,7 @@ exports[`PostPublishPanel should render the pre-publish panel if post status is
className="editor-post-publish-panel__header-cancel-button"
>
Cancel
@@ -135,7 +135,7 @@ exports[`PostPublishPanel should render the pre-publish panel if the post is not
className="editor-post-publish-panel__header-cancel-button"
>
Cancel
@@ -175,7 +175,7 @@ exports[`PostPublishPanel should render the spinner if the post is being saved 1
className="editor-post-publish-panel__header-cancel-button"
>
Cancel
diff --git a/packages/editor/src/components/post-saved-state/index.js b/packages/editor/src/components/post-saved-state/index.js
index 1103b0f7468785..114610c0247621 100644
--- a/packages/editor/src/components/post-saved-state/index.js
+++ b/packages/editor/src/components/post-saved-state/index.js
@@ -169,7 +169,7 @@ export default function PostSavedState( {
className="editor-post-save-draft"
onClick={ () => savePost() }
shortcut={ displayShortcut.primary( 's' ) }
- isTertiary
+ variant="tertiary"
>
{ label }
diff --git a/packages/editor/src/components/post-saved-state/test/__snapshots__/index.js.snap b/packages/editor/src/components/post-saved-state/test/__snapshots__/index.js.snap
index 7bdbf164f7481b..575ba88aa66114 100644
--- a/packages/editor/src/components/post-saved-state/test/__snapshots__/index.js.snap
+++ b/packages/editor/src/components/post-saved-state/test/__snapshots__/index.js.snap
@@ -5,9 +5,9 @@ exports[`PostSavedState returns a switch to draft link if the post is published
exports[`PostSavedState should return Save button if edits to be saved 1`] = `
Save draft
diff --git a/packages/editor/src/components/post-switch-to-draft-button/index.js b/packages/editor/src/components/post-switch-to-draft-button/index.js
index 122b5f8377e763..32f2cac753bd69 100644
--- a/packages/editor/src/components/post-switch-to-draft-button/index.js
+++ b/packages/editor/src/components/post-switch-to-draft-button/index.js
@@ -40,7 +40,7 @@ function PostSwitchToDraftButton( {
className="editor-post-switch-to-draft"
onClick={ onSwitch }
disabled={ isSaving }
- isTertiary
+ variant="tertiary"
>
{ isMobileViewport ? __( 'Draft' ) : __( 'Switch to draft' ) }
diff --git a/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js b/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js
index 234b5f25e8f6ac..24c7131cb70b2b 100644
--- a/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js
+++ b/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js
@@ -487,7 +487,7 @@ class HierarchicalTermSelector extends Component {
onClick={ this.onToggleForm }
className="editor-post-taxonomies__hierarchical-terms-add"
aria-expanded={ showForm }
- isLink
+ variant="link"
>
{ newTermButtonLabel }
@@ -518,7 +518,7 @@ class HierarchicalTermSelector extends Component {
/>
) }
diff --git a/packages/editor/src/components/post-taxonomies/most-used-terms.js b/packages/editor/src/components/post-taxonomies/most-used-terms.js
index da3539b05457e4..aa5a8d7a3b69bc 100644
--- a/packages/editor/src/components/post-taxonomies/most-used-terms.js
+++ b/packages/editor/src/components/post-taxonomies/most-used-terms.js
@@ -59,7 +59,10 @@ export default function MostUsedTerms( { onSelect, taxonomy } ) {
>
{ terms.map( ( term ) => (
- onSelect( term ) }>
+ onSelect( term ) }
+ >
{ term.name }
diff --git a/packages/editor/src/components/post-trash/index.js b/packages/editor/src/components/post-trash/index.js
index c82eb8d99c0a97..f0f07f9405f9e4 100644
--- a/packages/editor/src/components/post-trash/index.js
+++ b/packages/editor/src/components/post-trash/index.js
@@ -17,7 +17,7 @@ function PostTrash( { isNew, postId, postType, ...props } ) {
{ __( 'Move to trash' ) }
diff --git a/packages/interface/src/components/complementary-area/index.js b/packages/interface/src/components/complementary-area/index.js
index 767e0d2425e83e..71fb6a610d6a32 100644
--- a/packages/interface/src/components/complementary-area/index.js
+++ b/packages/interface/src/components/complementary-area/index.js
@@ -149,7 +149,7 @@ function ComplementaryArea( {
label={ title }
icon={ showIconLabels ? check : icon }
showTooltip={ ! showIconLabels }
- isTertiary={ showIconLabels }
+ variant={ showIconLabels ? 'tertiary' : undefined }
/>
) }
diff --git a/packages/list-reusable-blocks/src/components/import-dropdown/index.js b/packages/list-reusable-blocks/src/components/import-dropdown/index.js
index 712c8cb7a6317a..74aee0df9280c7 100644
--- a/packages/list-reusable-blocks/src/components/import-dropdown/index.js
+++ b/packages/list-reusable-blocks/src/components/import-dropdown/index.js
@@ -20,7 +20,11 @@ function ImportDropdown( { onUpload } ) {
position="bottom right"
contentClassName="list-reusable-blocks-import-dropdown__content"
renderToggle={ ( { isOpen, onToggle } ) => (
-
+
{ __( 'Import from JSON' ) }
) }
diff --git a/packages/list-reusable-blocks/src/components/import-form/index.js b/packages/list-reusable-blocks/src/components/import-form/index.js
index a7305ec03552b6..a9dd565d29c551 100644
--- a/packages/list-reusable-blocks/src/components/import-form/index.js
+++ b/packages/list-reusable-blocks/src/components/import-form/index.js
@@ -107,7 +107,7 @@ class ImportForm extends Component {
type="submit"
isBusy={ isLoading }
disabled={ ! file || isLoading }
- isSecondary
+ variant="secondary"
className="list-reusable-blocks-import-form__button"
>
{ _x( 'Import', 'button label' ) }
diff --git a/packages/nux/src/components/dot-tip/index.js b/packages/nux/src/components/dot-tip/index.js
index 308e07a0b689c6..7f1461ab585664 100644
--- a/packages/nux/src/components/dot-tip/index.js
+++ b/packages/nux/src/components/dot-tip/index.js
@@ -58,7 +58,7 @@ export function DotTip( {
>
{ children }
-
+
{ hasNextTip ? __( 'See next tip' ) : __( 'Got it' ) }
diff --git a/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap b/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap
index b8637fcbe88f28..b72099d193cfa8 100644
--- a/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap
+++ b/packages/nux/src/components/dot-tip/test/__snapshots__/index.js.snap
@@ -17,7 +17,7 @@ exports[`DotTip should render correctly 1`] = `
Got it
diff --git a/packages/reusable-blocks/src/components/reusable-blocks-menu-items/reusable-block-convert-button.js b/packages/reusable-blocks/src/components/reusable-blocks-menu-items/reusable-block-convert-button.js
index c14bfa44f0e4c7..ab7d8b12e44168 100644
--- a/packages/reusable-blocks/src/components/reusable-blocks-menu-items/reusable-block-convert-button.js
+++ b/packages/reusable-blocks/src/components/reusable-blocks-menu-items/reusable-block-convert-button.js
@@ -150,7 +150,7 @@ export default function ReusableBlockConvertButton( {
>
{
setIsModalOpen( false );
setTitle( '' );
@@ -160,7 +160,7 @@ export default function ReusableBlockConvertButton( {
-
+
{ __( 'Save' ) }