Origami Frontend Components & Services

SassDoc: o-footer

oFooter(opts)

Output all o-footer styles including a navigation matrix, and two themes.

parameter type default description
opts (optional) ('themes': ('light', 'dark'), 'margin': 40px, 'matrix': true) a map of footer options. Keys include 'themes', a list of themes to support including "dark" and "light"; 'margin', a length to customise the footer's top margin; and 'matrix', a boolean value whether to support a complex footer with large navigation structure.

Links

oButtonsGetColor(...)

Gets the color of a button property for a given theme and state.

parameter type default description
state
property
type
theme A theme string or a custom theme map.

Returns

Color - The hex colour for a button property.

Examples

Example #1

background: oButtonsGetColor($state: 'default', $property: 'color', $type: 'primary');

Example #2

background: oButtonsGetColor($state: 'hover', $property: 'border', $type: 'secondary');

Links

oFooter(opts)

Output all o-footer styles including a navigation matrix, and two themes.

parameter type default description
opts (optional) ('themes': ('light', 'dark'), 'margin': 40px, 'matrix': true) a map of footer options. Keys include 'themes', a list of themes to support including "dark" and "light"; 'margin', a length to customise the footer's top margin; and 'matrix', a boolean value whether to support a complex footer with large navigation structure.

Links

Status
active
Switch component view

GitHub: o-footer@9.2.6

Install o-footer

If using the Build Service, add o-footer@^9.2.6 to your script and link tags.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-footer@^9.2.6".

Help & Support

o-footer is maintained directly by the Origami team. If you have any questions about o-footer or Origami in general, we are happy to help. 😊

Slack: #origami-support
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #origami-support
Email: origami.support@ft.com