Skip to content

Commit

Permalink
Navigation: adjust mobile close button position when admin bar is vis…
Browse files Browse the repository at this point in the history
…ible (#41664)

* Add top margin to dialog when admin bar is visible

* Remove padding tweak
  • Loading branch information
mikachan authored Jun 23, 2022
1 parent 11b0a30 commit 7ebe437
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,16 @@ button.wp-block-navigation-item__content {
position: relative;
}

// Adjust dialog top margin when admin-bar is visible.
.admin-bar .wp-block-navigation__responsive-dialog {
margin-top: $admin-bar-height-big;

// Handle smaller admin-bar.
@include break-medium() {
margin-top: $admin-bar-height;
}
}

// Prevent scrolling of the parent content when the modal is open.
html.has-modal-open {
overflow: hidden;
Expand Down

0 comments on commit 7ebe437

Please sign in to comment.