Shortcuts are as a way of providing a quick and easy way to access popular pages. They are usually placed in the main view of a newly loaded page.
Shortcuts are used to highlight alternative actions from the current flow which we think are important for the user. They are either of a more alerting nature or navigational, and each design only corresponds to one of these two uses. For both use cases the shortcut takes the user into another flow than the one they came from. Shortcuts are normally spanning the whole row, except for multiple-lined shortcuts which may have two next to each other. They also feature a 2px shadow on the bottom to highlight that they can be clicked.
There are two main variations of the shortcut:
There are two different types of navigational shortcuts, but these types are mainly aesthetic as they both do the same thing - they help the user to navigate in alternative patterns than the main purpose of the page they are on. The main difference between the types are how many rows they span, and how the design has been adapted for this.
The one-lined shortcut is used for navigational purposes and is white with blue bold text. Its relative size is somewhat bigger than the other versions.
Multiple-lined shortcuts consists of a header row (larger type, bold) which communicates the main action and a textarea below to give more detail in. The textarea can span one or several rows andea you need to choose between one of the two modifiers for the styling:
Our landing pages often feature a special version of the shortcut which in its desktop-mode looks more like a large button than the other shortcuts (in its responsive mode it is very similar to the one-lined shortcut however). The main area of the shortcut features a large icon, and below the icon a few (preferably only one) words describe what the shortcut leads to.
This is used on the landing pages of lansforsakringar.se and Mina Sidor as well as the Om oss (about us)-section of lansforsakringar.se.
One modifier exists for shortcuts and it is available for "glasspinnar" and navigational shortcuts; you can opt to put an icon in your shortcut. If so it is placed to the left of the text in the shortcut. Just make sure that you're consistent if you have several shortcuts grouped together.
Shortcuts are highly flexible. They can go with our without icons, and contain pretty much any type of content – such as a paragraph in above examples.
Three options, with their default values.
--shortcut-text-color: var(--color-body);
--shortcut-border-color: var(--smoke);
--shortcut-border-accent-color: var(--blue);
You can build landing page shortcuts by adding .shortcut-box
to your shortcut. See the example below.
<a href="#" class="shortcut shortcut-box">
<svg class="icon" width="40" height="40">
<use xlink:href="/lf-icons/sprite/40/icons.svg#house-40"></use>
</svg>
<strong class="shortcut-title">Loans</strong>
</a>
If you would like for the box shortcuts to go horizontal and stacked on narrow viewpoints, consider the shortcut-md-box
modifier instead. In this case, icon size needs to be taken into account. Since LFUI dosen't scale icons, two different icons will need to be defined. The visibility of the icons can then be controlled with bootstraps display classes .
Use a 24px icon for small screens and a 40px icon for larger screens.
<a href="#" onclick="return false" class="shortcut shortcut-md-box">
<svg class="icon d-md-none" width="24" height="24">
<use xlink:href="lf-icons/sprite/24/icons.svg#house-24"></use>
</svg>
<svg class="icon d-none d-md-block mb-05" width="40" height="40">
<use xlink:href="lf-icons/sprite/40/icons.svg#house-40"></use>
</svg>
<strong class="shortcut-title">Loans</strong>
</a>