-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site editor sidebar: abstracting footer so it can be used across deta…
…ils screens (#54082) * Initial commit: abstracting footer so it can be used across details pages including global styles. * No longer need style for styles panel footer * Ensuring the padding matches when there is no link around the last modified text row * harmonizing button padding with no-padding padding 6px 12px * Using SidebarNavigationItem and, indirectly, Item to render the footer item * Only render the footer if the required information (record.modifed) date is present. remove 'gutenberg' query value from revisions.php
- Loading branch information
Showing
9 changed files
with
63 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
packages/edit-site/src/components/sidebar-navigation-screen-details-footer/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
.edit-site-sidebar-navigation-screen-details-footer { | ||
padding-top: $grid-unit-10; | ||
padding-bottom: $grid-unit-10; | ||
padding-left: $grid-unit-20; | ||
// Default background color (no link or button). | ||
div.edit-site-sidebar-navigation-item.components-item:focus, | ||
div.edit-site-sidebar-navigation-item.components-item:hover, | ||
div.edit-site-sidebar-navigation-item.components-item[aria-current] { | ||
background: none; | ||
} | ||
.edit-site-sidebar-navigation-screen-details-footer__icon { | ||
margin-left: auto; | ||
fill: $gray-600; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
packages/edit-site/src/components/sidebar-navigation-screen-global-styles/style.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eb64bf8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in eb64bf8.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6079146190
📝 Reported issues:
/test/e2e/specs/editor/various/behaviors.spec.js