Skip to content

Commit

Permalink
Tweak entity save panel button (#65695)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: afercia <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2024
1 parent cc0b3d3 commit de01da2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions packages/editor/src/components/entities-saved-states/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,21 @@ export function EntitiesSavedStatesExtensible( {
aria-describedby={ renderDialog ? dialogDescription : undefined }
>
<Flex className="entities-saved-states__panel-header" gap={ 2 }>
<FlexItem
isBlock
as={ Button }
variant="secondary"
size="compact"
onClick={ dismissPanel }
>
{ __( 'Cancel' ) }
</FlexItem>
<FlexItem
isBlock
as={ Button }
ref={ saveButtonRef }
variant="primary"
size="compact"
disabled={ ! saveEnabled }
accessibleWhenDisabled
onClick={ () =>
Expand All @@ -147,14 +157,6 @@ export function EntitiesSavedStatesExtensible( {
>
{ saveLabel }
</FlexItem>
<FlexItem
isBlock
as={ Button }
variant="secondary"
onClick={ dismissPanel }
>
{ __( 'Cancel' ) }
</FlexItem>
</Flex>

<div className="entities-saved-states__text-prompt">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.entities-saved-states__panel-header {
box-sizing: border-box;
background: $white;
padding-left: $grid-unit-10;
padding-right: $grid-unit-10;
padding-left: $grid-unit-20;
padding-right: $grid-unit-20;
height: $header-height;
border-bottom: $border-width solid $gray-300;
}
Expand Down

0 comments on commit de01da2

Please sign in to comment.