Button

What & When

What this is: A clickable element that directs users to another page, section, or action. 
When to use: Important links, Links to downloadable content (PDF’s, Documents), Call to Actions (“Apply Now”, “Donate”)  

How to

Select Button from the Snippet select menu.

Table Editor Fields:

  1. Button Background Color: Sets the background color of the button. Options include Red, Light Gray, White, and Clear (no background color). The button text color will change on its own based on the background color to ensure readability.
  2. Button Behavior: Determines if the button will open in a current tab, or a new tab. The “download in new tab” behaves the exact same as “opens in new tab” option and is intended for downloadable files.  
  3. Button Width: Determines the width of the button. “Fit Content” sets the width of the button to match the amount of content that is within it. “Fill Space” makes the button stretch to be as wide as the area its placed on.
  4. Display Text: The text that is displayed on the button. Must have something in this field, or the button will not render.
  5. Button Screen Reader Text: An optional field that can be used to provide additional context to screen readers to improve accessibility. Recommended to add if you are knowledgeable on accessibility standards for screen reader text.
  6. Link: Set the link of the button. Must have something in this field, or the button will not render.
  7. GTM Class Name: An optional field used for tracking in Google Analytics. It doesn’t affect how the Snippet looks. Recommended to add if you know the right name to use.