Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/edit-post/src/components/back-button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
display: flex;
align-items: center;
align-self: stretch;
justify-content: center;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should be added to the Button component 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know there are plenty of custom styles for centering button text, so changing the default alignment might certainly be worth looking into. I may have seen an issue somewhere suggesting that.

border: none;
background: $gray-900;
color: $white;
Expand All @@ -29,10 +30,10 @@
content: "";
display: block;
position: absolute;
top: 9px;
right: 9px;
bottom: 9px + $border-width; // Height of toolbar in edit-post (not edit-site) is 61px tall.
left: 9px;
top: $grid-unit-10 + $border-width;
right: $grid-unit-10 + $border-width;
bottom: $grid-unit-10 + $border-width;
left: $grid-unit-10 + $border-width;
border-radius: $radius-small + $border-width + $border-width;
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) $gray-900;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
content: "";
display: block;
position: absolute;
top: 9px;
right: 9px;
bottom: 9px;
left: 9px;
top: $grid-unit-10 + $border-width;
right: $grid-unit-10 + $border-width;
bottom: $grid-unit-10 + $border-width;
left: $grid-unit-20 + $border-width;
border-radius: $radius-medium;
box-shadow: none;

Expand Down
Loading