Rail Item

The Rail Item component is used to select the navigation path represented by the icon.

Code

<a href="/my-link" type="patch">
  <div class="backoffice-navigation-rail">
    <div class="backoffice-navigation-icon"><.icon name="file" /></div>
    <span>Menu Item</span>
  </div>
</a>
-- (active) --
<a href="/my-link" type="patch">
  <div class="backoffice-navigation-rail backoffice-navigation-rail-active">
    <div class="backoffice-navigation-icon"><.icon name="file" /></div>
    <span>Menu Item</span>
  </div>
</a>
Class nametype
backoffice-navigation-railcomponentContainer element
backoffice-navigation-iconcomponentNavigation icon

@media (hover: hover) {

.backoffice-navigation-rail:hover { ... }

}

modifierSets the display of the hover status

@media (hover: hover) {

.backoffice-navigation-rail:hover .backoffice-navigation-icon { ... }

}

modifierSets the display of the hover status for the icon area
backoffice-navigation-rail-active .backoffice-navigation-icon svgmodifierSets the display in the hover state for an svg icon
backoffice-navigation-rail-active .backoffice-navigation-iconmodifierSets the display of the hover status

Was this page helpful?