-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move classes used from navigation component to block (#37375)
- Loading branch information
Showing
2 changed files
with
13 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Navigation block | ||
|
||
The Navigation block is a container block for the collection of blocks that allow visitors to get around your site. See also the Navigation Link block and Navigation Submenu block. | ||
|
||
## CSS Classes | ||
|
||
The structural CSS for the navigation block targets generic classnames across menu items of multiple types including those automatically generated by the Page List block. Here are some of the notable classnames and what they are used for: | ||
|
||
- `.wp-block-navigation__submenu-container` is applied to submenus to main menu items. | ||
- `.wp-block-navigation-item` is applied to every menu item. | ||
- `.wp-block-navigation-item__content` is applied to the link inside a menu item. | ||
- `.wp-block-navigation-item__label` is applied to the innermost container around the menu item text label. | ||
- `.wp-block-navigation__submenu-icon` is applied to the submenu indicator (chevron). |
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