Skip to content

Commit c6c1438

Browse files
jasmussennoisysocks
authored andcommitted
Navigation: Scale submenu icon. (#36714)
* Navigation: Scale submenu icon. * Update icon to be 60% size.
1 parent 0f3aa2f commit c6c1438

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/block-library/src/navigation/style.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,27 @@
7878

7979
// Submenu indicator.
8080
.wp-block-navigation__submenu-icon {
81-
align-self: center;
82-
height: inherit;
81+
align-self: center; // This one affects nested submenu indicators.
8382
line-height: 0;
84-
margin-left: 6px;
83+
display: inline-block;
84+
vertical-align: middle;
8585

8686
// Affect the button as well.
8787
padding: 0;
8888
background-color: inherit;
8989
color: currentColor;
9090
border: none;
9191

92+
// Scale to font size.
93+
margin-left: 0.25em;
94+
width: 0.6em;
95+
height: 0.6em;
96+
9297
svg {
9398
display: inline-block;
9499
stroke: currentColor;
100+
width: inherit;
101+
height: inherit;
95102
}
96103
}
97104
}

0 commit comments

Comments
 (0)