- Uplift Education
- Button System
Creating consistent buttons through CSS overrides
-
This simple link: <a href="URL">Visible Link Text</a>
Becomes a blue button with the addition of these classes - which are available from the CSS Overrides file.
<a class="uebutton color-blue icon pdf" href="URL"><span class="null">Visible Link Text</span></a>
uebutton - established basic button characteristics.
color-blue
color-orange
color-gold
color-skyblue
Defines the color or the button background and text color. Each already has a fixed hover color.icon
declares that an icon will be used
arrows
email
pdf
video
external-link
give-dollars
Make a Gift Online Today
Make a Gift Online Today
give-time
medical-mask
Word in button above is class for iconwidth-full
makes the buttons full with of columncenter
centers to the text in the button width. (not needed is button is not full width)stacked
makes top margin 0 and set bottom margin tighter for stacking buttonsWhen hand coding buttons: target="_blank" rel="noopener noreferrer" is added to A tag when a link is opening a new window.
If buttons are being added in an "Embed App" the Aria attributes must be added to the A tag by hand.
Example: add this code inside the A tag: aria-label="text for WCAG guidelines"