{"id":8187,"date":"2019-11-12T16:04:21","date_gmt":"2019-11-12T21:04:21","guid":{"rendered":"https:\/\/www.med.unc.edu\/webguide\/?page_id=8187"},"modified":"2025-02-13T09:27:47","modified_gmt":"2025-02-13T14:27:47","slug":"buttons","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/webguide\/userguide\/styling-content\/buttons\/","title":{"rendered":"Buttons"},"content":{"rendered":"
There are a number of icons that can be added to a button.<\/p>\n<\/i> Donate<\/a>\n<\/i> Our Location<\/a>\n<\/i> Appointments<\/a>\n Create block level buttons\u2014those that span the full width of it’s containing element\u2014by selecting the make block<\/strong> option.<\/p>\nDefault<\/a>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n Light and dark versions of our buttons are available. To use these options, insert btn-light<\/strong> or btn-dark<\/strong> in the Custom Class<\/strong> field when generating the shortcode for a button.<\/p>\n These buttons should be displayed on a dark background to ensure adequate contrast between the buttons and the background color.<\/p>\n These buttons should be displayed on a light background to ensure adequate contrast between the buttons and the background color.<\/p>\n This demonstrates which buttons have adequate contrast<\/a> when placed on these sample background colors.<\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Large Buttons Small Buttons Extra Small Buttons Buttons With Icons There are a number of icons that can be added to a button. Full Width Buttons Create block level buttons\u2014those that span the full width of it’s containing element\u2014by selecting the make block option. How to Add a Button Place your cursor in the location … Read more<\/a><\/p>\n","protected":false},"author":3206,"featured_media":0,"parent":2212,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"layout":"","cellInformation":"","apiCallInformation":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-8187","page","type-page","status-publish","hentry","odd"],"acf":[],"_links_to":[],"_links_to_target":[],"_links":{"self":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/users\/3206"}],"replies":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/comments?post=8187"}],"version-history":[{"count":47,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8187\/revisions"}],"predecessor-version":[{"id":14129,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8187\/revisions\/14129"}],"up":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/2212"}],"wp:attachment":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/media?parent=8187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Full Width Buttons<\/h2>\n
\nHow to Add a Button<\/h2>\n
\n
\n<\/li>\n
\n<\/li>\n
\n
\n
\n
\n
\n
\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n
\nAlternate Color Options<\/h2>\n
Light Buttons<\/h3>\n
\nDark Buttons<\/h3>\n
\nAdequate Contrast<\/h2>\n
White Background (#ffffff)<\/h3>\n
Medium Buttons<\/h4>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n
Dark Buttons<\/h4>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n
SOM Light Blue Background (#e2eff8)<\/h3>\n
Medium Buttons<\/h4>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n
Dark Buttons<\/h4>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n<\/div>\n
SOM Medium Blue Background (#257cb7)<\/h3>\n
Light Buttons<\/h4>\nSimple<\/a>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n
Medium Buttons<\/h4>\nSimple<\/a>\n
Dark Buttons<\/h4>\nSimple<\/a>\n<\/div>\n
SOM Dark Blue Background (#08446d)<\/h3>\n
Light Buttons<\/h4>\nSimple<\/a>\nPrimary<\/a>\nSuccess<\/a>\nInformation<\/a>\nWarning<\/a>\nDanger<\/a>\nLink<\/a>\n
Medium Buttons<\/h4>\nSimple<\/a>\n
Dark Buttons<\/h4>\nSimple<\/a>\n<\/div>\n