Modern business: Disable nav menu order if FSE is enabled (#1221)

- Since we set the order of footer/header elements (like nav)
  in Gutenberg, we don't want the stylesheet to override it.
- Use the `.fse-enabled` selector to disable the order property
- This was causing the footer nav menu in FSE to show up at
  very bottom of the page, even if the user changed its order.
This commit is contained in:
Noah Allen 2019-08-08 09:46:47 -07:00 committed by GitHub
parent b12d508db9
commit e106be063e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,11 @@
margin-top: #{0.6 * $size__spacing-unit};
order: 3;
body.fse-enabled & {
// With FSE, we want the placement of the nav menu to be set in gutenberg:
order: initial;
}
body.page & {
display: block;
}

View file

@ -258,6 +258,10 @@ Modern Business Editor Styles
*/
}
body.fse-enabled .main-navigation {
order: initial;
}
body.page .main-navigation {
display: block;
}

View file

@ -1012,6 +1012,10 @@ a:focus {
*/
}
body.fse-enabled .main-navigation {
order: initial;
}
body.page .main-navigation {
display: block;
}

View file

@ -1012,6 +1012,10 @@ a:focus {
*/
}
body.fse-enabled .main-navigation {
order: initial;
}
body.page .main-navigation {
display: block;
}