Button

Buttons


Use buttons to trigger actions and links. Buttons contain a combination of a clear label and an icon while links are always text.
When using more than 5 buttons please use the Linklist Component.

Usage


There are four types of buttons

  • Buttons with arrow icon:
    ... opens the target URL in the same window (the targetsite is in the current website)
  • Buttons with external icon:
    ... opens the target URL in a new tab/window
  • Buttons with download icon:
    ... opens a download in the browser standard
  • Buttons with anchor link icon:
    ... skips to a certain anchor-point on a page (most common on the same page, but can also be on a different page)

Important! For internal links (arrow icon), you should manually select the path to that Product page from AEM (by clicking the icon next to the field "Button link"). This ensures that even if the page's link changes later, your Button will still work. It's also very important to do this on Language Master pages that can be rolled out to Live Copies, as this ensures that the URL structure will update correctly for each country.

Button Conditions

  • Based on the Bootstrap base-font-size of 16px small buttons and standard sized buttons have a font-size of 16px or 1rem.
  • In general you will use the "normal" size.
  • Button width depends on labelling (label + icon)
  • Buttons must be single lined (labelling must be chosen to be as short as possible)
  • Buttons are always flat without shadow.
  • Buttons must have a color different to the background color they are placed on.
  • The buttons inside the button component are aligned side by side and can wrap into a new line (though a accumulation of more than 2 buttons doesn't seem appropriate in most cases).
  • Buttons should always be positioned below text (with same alignment) but not below images.

Prioritisation

  • Primary Buttons should occur only once per page, e.g lead generation is the prior task on Heropages, so this should be the only Primary Button.

 

  • Secondary Buttons are used for most of the other cases.

 

  • Tertiary Buttons are meant for further Download links or when background colour requires a better contrast.

Demonstration Internal links

  • Buttons with arrow icon are for internal site targets. You have to use that button to open the target URL in the same window (the targetsite is in the current website). You can use that button as an internal call-to-action button.

Demonstration External links

  • Buttons with external icon opens the target URL in a new tab/window. You have to use that Button if you link to an external website target.

Demonstration Download links

  • Buttons with download icon opens the download file. You have to use that Button if you want to insert a download asset.

Demonstration Anchor links

  • Buttons with anchor-link icon skip to a certain anchor-point (ID).

Demonstration of Small Buttons


How to set up a Button

  • Double click on the placed button component or choose the wrench tool at the component to get a setup modal for setting up the properties of the button. 
  • Select a desired "ButtonType" (see above for the different types) 
  • When selecting "Button to anchor" an ID of the anchor has to be known, to link to it
  • If the anchor hasn't been set in advance, you may set it first anywhere on the website by choosing the "Anchor Component".
  • If the anchor ID is known, and the anchor is provided on the same page, just insert the name of the ID in the "Button Link" input field – you don't need to insert a hash key '#'
  • In case the anchor is provided on a different page, click on the "Search File" Icon appended to the "Button Link" input field, specify the desired file and append the anchor ID by inserting a '#' at the end, then insert the ID (like "/content/learn-and-support/language-masters/en/components/standard-components/Buttons#smallbuttons")
  • Insert a "Button Title" that will be shown as the button's label
  • To specify a "Button Link", click on the "Search File" Icon appended to the  input field
  • The "Zero Point" actually means how the button is aligned – left or center (it specifies where the button's zero coordinate is placed according to the surrounded parent element)
  • The last two options "Button Size" and "ButtonColor" are self-descriptive (see above when to use which color)