Feature: #90994 - Mark current page in fluid_styled_content menu content elements¶
See forge#90994
Description¶
All menu content elements related to page navigation reflect the "current" state of a page now.
The resulting HTML of these page link lists is then:
<li>
<a aria-current="page" > ...
</li>
Copied!
Impact¶
The aria attribute aria-
is added to the a
tag of
the menu item of the current page.
For styling with CSS the attribute of the link can be used:
[aria-current="page"] {
/* Special style for the current page link */
}
[aria-current="page"]:hover {
/* Special style for the current page link when hovered */
}
[aria-current="page"]::before {
/* Special virtual element for additions like chevrons, etc. */
}
Copied!