8288531: Empty spans in mobile navigation markup
Reviewed-by: jjg
This commit is contained in:
parent
af05139133
commit
c74a9235fc
@ -614,7 +614,8 @@ public class Navigation {
|
|||||||
Content skipNavLinks = contents.getContent("doclet.Skip_navigation_links");
|
Content skipNavLinks = contents.getContent("doclet.Skip_navigation_links");
|
||||||
String toggleNavLinks = configuration.getDocResources().getText("doclet.Toggle_navigation_links");
|
String toggleNavLinks = configuration.getDocResources().getText("doclet.Toggle_navigation_links");
|
||||||
navigationBar.add(MarkerComments.START_OF_TOP_NAVBAR);
|
navigationBar.add(MarkerComments.START_OF_TOP_NAVBAR);
|
||||||
HtmlTree iconSpan = HtmlTree.SPAN(HtmlStyle.navBarToggleIcon).addUnchecked(Text.EMPTY);
|
// The mobile menu button uses three empty spans to produce its animated icon
|
||||||
|
HtmlTree iconSpan = HtmlTree.SPAN(HtmlStyle.navBarToggleIcon).add(Entity.NO_BREAK_SPACE);
|
||||||
navDiv.setStyle(HtmlStyle.topNav)
|
navDiv.setStyle(HtmlStyle.topNav)
|
||||||
.setId(HtmlIds.NAVBAR_TOP)
|
.setId(HtmlIds.NAVBAR_TOP)
|
||||||
.add(new HtmlTree(TagName.BUTTON).setId(HtmlIds.NAVBAR_TOGGLE_BUTTON)
|
.add(new HtmlTree(TagName.BUTTON).setId(HtmlIds.NAVBAR_TOGGLE_BUTTON)
|
||||||
|
Loading…
Reference in New Issue
Block a user