Skip to content

Commit

Permalink
use secondary variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Apr 1, 2024
1 parent b8643fe commit c9c6ea7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/edit-site/src/components/add-new-pattern/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export default function AddNewPattern( { showTextButton } ) {
controls={ controls }
toggleProps={ {
as: showTextButton ? Button : SidebarButton,
variant: showTextButton ? 'primary' : undefined,
variant: showTextButton ? 'secondary' : undefined,
} }
icon={ showTextButton ? null : plus }
label={ showTextButton ? undefined : __( 'Create pattern' ) }
text={ showTextButton ? __( 'Create pattern' ) : undefined }
label={ showTextButton ? undefined : __( 'Add new pattern' ) }
text={ showTextButton ? __( 'Add new pattern' ) : undefined }
/>
{ showPatternModal && (
<CreatePatternModal
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default function PagePages() {
title={ __( 'Pages' ) }
actions={
<>
<Button variant="primary" onClick={ openModal }>
<Button variant="secondary" onClick={ openModal }>
{ __( 'Add new page' ) }
</Button>
{ showAddPageModal && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export default function AddNewTemplatePart() {

return (
<>
<Button variant="primary" onClick={ () => setIsModalOpen( true ) }>
<Button
variant="secondary"
onClick={ () => setIsModalOpen( true ) }
>
{ postType.labels.add_new_item }
</Button>
{ isModalOpen && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default function PageTemplatesTemplateParts( { postType } ) {
<AddNewTemplate
templateType={ postType }
showIcon={ false }
toggleProps={ { variant: 'primary' } }
toggleProps={ { variant: 'secondary' } }
/>
) : (
<AddNewTemplatePart />
Expand Down

0 comments on commit c9c6ea7

Please sign in to comment.