Footer
A footer appears at the bottom of all pages and provides access to links and other content.
Footer Example
When to Use
- A footer is not required for use in all applications. However, when a footer is used, it should appear across all standard pages in the application.
Types of Content
The links and content in the footer should remain consistent across all pages. Here are some common elements that may appear:
- Sabre logo (white version): Include the Sabre logo if it does not appear in the header.
- Legal Text
- Trademarks and Copyrights
- Contact Us
- Social media icons
Developer Notes
The footer is created by adding the spark-footer
class to an element. The component relies heavily on flexbox to shift content around depending on screen size. Content is aligned to the left by default, but a secondary menu can be pulled to the right by adding a class of spark-footer__list--right
. A list of icons should include the class of spark-footer__list--icons
. This removes the underline from the anchors.
On smaller resolutions ancillary content should be hidden. This can be done using the spark-hidden--*
helper classes.
White Label Footer
Spark offers a white label theme for products that allow customers to configure the look and feel of the application. The following is an example of the Footer component when pointing to the white label stylesheet.
Accessibility Notes
Footer Logo
If you are including a logo within the Footer component, you will need to ensure that the appropriate label is provided to screen-readers and assistive technologies for full accessibility. Some possible approaches are discussed below.
Using CSS
If using CSS to provide a background image, make sure an aria-label
attribute is included on the spark-footer__logo
element. This will allow screen-readers and assistive technologies to read the value of the attribute as the label for the link. The label should be descriptive enough so users understand the purpose of the link.
Using an Image
If using an <img>
tag to provide a logo, make sure that an alt
attribute is set on the <img>
and has a descriptive value that indicates the purpose or destination of the link.
Social Media Icons
When providing links to social media sites using the Spark-provided social icons, set an aria-label
attribute on the spark-footer__list-link
element to provide users of assistive technologies with information on where the link points.