Sidenav

The sidenav component is part of the layout of the application and it makes easier to divide the main screen into two different areas. The main area will have all the content and the sidenav as a secondary element as an index, including links to different resources on the web page.

The sidenav is part of the application layout, so it can only be used inside of it. Please check the DxcApplicationLayout documentation.

Specifications

Sidenav design specifications
Sidenav design specifications

Anatomy

Sidenav anatomy
  1. 1.
    Title (Optional)
  2. 2.
    Group Title (Optional)
  3. 3.
    Page or Section Link
  4. 4.
    Divider
  5. 5.
    Current Page or Section

Design tokens

Color

Component tokenElementCore tokenValue
backgroundColorSidenav containercolor-grey-100#f2f2f2
titleFontColorTitlecolor-grey-800#4d4d4d
groupTitleFontColorGroup titlecolor-black#000000
groupTitleHoverBackgroundColorGroup title background:hovercolor-grey-200#e6e6e6
groupTitleActiveBackgroundColorGroup title background:activecolor-grey-800#4d4d4d
groupTitleSelectedFontColorGroup title:selectedcolor-white#ffffff
groupTitleSelectedBackgroundColorGroup title background:selectedcolor-grey-800#4d4d4d
groupTitleSelectedHoverFontColorGroup title:hover selectedcolor-white#ffffff
groupTitleSelectedHoverBackgroundColorGroup title background:selected hovercolor-grey-900#333333
linkFontColorLinkcolor-grey-800#4d4d4d
linkHoverBackgroundColorLink background:hovercolor-grey-200#e6e6e6
linkSelectedFontColorLink:selectedcolor-white#ffffff
linkSelectedBackgroundColorLink background:selectedcolor-grey-800#4d4d4d
linkSelectedHoverFontColorLink:selected hovercolor-white#ffffff
linkSelectedHoverBackgroundColorLink background:selected hovercolor-grey-900#333333
linkFocusColorLink:focuscolor-blue-600#0095ff
scrollBarThumbColorScroll thumbcolor-grey-200-a#0000001a
scrollBarTrackColorScroll trackcolor-transparenttransparent

Typography

Component tokenElementCore tokenValue
titleFontFamilyTitlefont-family-sans'Open Sans', sans-serif
titleFontSizeTitlefont-scale-041.25rem / 20px
titleFontStyleTitlefont-style-normalnormal
titleFontWeightTitlefont-weight-semibold600
titleFontLetterSpacingTitlespacing-00em
groupTitleFontFamilyGroup titlefont-family-sans'Open Sans', sans-serif
groupTitleFontSizeGroup titlefont-scale-020.875rem / 14px
groupTitleFontStyleGroup titlefont-style-normalnormal
groupTitleFontWeightGroup titlefont-weight-semibold600
linkFontFamilyLinkfont-family-sans'Open Sans', sans-serif
linkFontSizeLinkfont-scale-020.875rem
linkFontStyleLinkfont-style-normalnormal
linkFontWeightLinkfont-weight-regular400

Spacing

PropertyElementCore tokenValue
margin-topLinkspacing-40.25rem / 4px
margin-bottomLinkspacing-40.25rem / 4px
margin-rightLinkspacing-161rem / 16px
margin-leftLinkspacing-161rem / 16px