{"id":169,"date":"2024-05-24T10:29:40","date_gmt":"2024-05-24T17:29:40","guid":{"rendered":"https:\/\/comm.engineering.asu.edu\/pitchfork\/?post_type=pitchfork-docs&#038;p=169"},"modified":"2024-05-24T15:47:13","modified_gmt":"2024-05-24T22:47:13","slug":"button","status":"publish","type":"pitchfork-docs","link":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/","title":{"rendered":"Buttons \/ Button"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"color-size\">Colors and sizes<\/h2>\n\n\n\n<p>The Unity Design System allows for buttons to one of four colors and one of three possible sizes.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Sizes: <\/strong>Small, Medium and Large.<\/li>\n\n\n\n<li><strong>Colors: <\/strong>ASU Maroon, ASU Gold, ASU Gray 7 (black) and ASU Gray 4<\/li>\n<\/ul>\n\n\n\n<p>The default color and size of a button is maroon and large. <\/p>\n\n\n\n<p>Gold buttons should be reserved for the most important call to action on a page that has multiple buttons within the design.<\/p>\n\n\n\n<p>Large buttons are the correct size for almost all applications of a button within the design system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"data-layer\">Data layer tracking <\/h2>\n\n\n\n<p>By default, a button will not supply the needed <code>data-ga<\/code> tags within the markup to submit the event to the GA4 data layer.<\/p>\n\n\n\n<p>Users wishing to track the activity of a particular button within Google Analytics can enable that behavior by supplying the individual button with a unique name. The option to rename a block appears in the toolbar associated with that block as well as within the Document Overview \u2192 List View pane.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The name supplied to the button block will be assigned to the <code>data-ga<\/code> attribute of the button.<\/li>\n\n\n\n<li>All other <code>data-ga-*<\/code> attributes will be added automatically according to the data layer specification within the unity design system.<\/li>\n<\/ul>\n\n\n\n<p>A recommended approach for renaming a button is to use a naming convention like <strong>CTA: {Action}<\/strong> for the button name. That will help to delineate which call to action is being tracked within the analytics package. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-drop-shadow\"><img loading=\"lazy\" decoding=\"async\" width=\"1846\" height=\"996\" src=\"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png 1846w, https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4-300x162.png 300w, https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4-1024x552.png 1024w, https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4-768x414.png 768w, https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4-1536x829.png 1536w\" sizes=\"auto, (max-width: 1846px) 100vw, 1846px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p class=\"mb-2\">Buttons communicate possible actions that users can take while looking at your page. They also users to make those choices using a single click or tap. <\/p>\n<p class=\"mb-2\">Be sure to reserve their use for important calls to action and delegate other functionality like page linking to hyperlinks and other UI mechanisms.<\/p>\n","protected":false},"parent":0,"menu_order":0,"template":"","pitchfork-docs-category":[3],"class_list":["post-169","pitchfork-docs","type-pitchfork-docs","status-publish","hentry","pitchfork-docs-category-core-blocks"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Buttons \/ Button - Pitchfork Theme for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Buttons \/ Button - Pitchfork Theme for WordPress\" \/>\n<meta property=\"og:description\" content=\"Buttons communicate possible actions that users can take while looking at your page. They also users to make those choices using a single click or tap.  Be sure to reserve their use for important calls to action and delegate other functionality like page linking to hyperlinks and other UI mechanisms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/\" \/>\n<meta property=\"og:site_name\" content=\"Pitchfork Theme for WordPress\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-24T22:47:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1846\" \/>\n\t<meta property=\"og:image:height\" content=\"996\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/\",\"url\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/\",\"name\":\"Buttons \\\/ Button - Pitchfork Theme for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/wp-content\\\/uploads\\\/sites\\\/79\\\/2024\\\/05\\\/image-4.png\",\"datePublished\":\"2024-05-24T17:29:40+00:00\",\"dateModified\":\"2024-05-24T22:47:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/#primaryimage\",\"url\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/wp-content\\\/uploads\\\/sites\\\/79\\\/2024\\\/05\\\/image-4.png\",\"contentUrl\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/wp-content\\\/uploads\\\/sites\\\/79\\\/2024\\\/05\\\/image-4.png\",\"width\":1846,\"height\":996},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/button\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documents\",\"item\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Buttons \\\/ Button\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/#website\",\"url\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/\",\"name\":\"Pitchfork Theme for WordPress\",\"description\":\"an ASU Engineering theme for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/comm.engineering.asu.edu\\\/pitchfork\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Buttons \/ Button - Pitchfork Theme for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/","og_locale":"en_US","og_type":"article","og_title":"Buttons \/ Button - Pitchfork Theme for WordPress","og_description":"Buttons communicate possible actions that users can take while looking at your page. They also users to make those choices using a single click or tap.  Be sure to reserve their use for important calls to action and delegate other functionality like page linking to hyperlinks and other UI mechanisms.","og_url":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/","og_site_name":"Pitchfork Theme for WordPress","article_modified_time":"2024-05-24T22:47:13+00:00","og_image":[{"width":1846,"height":996,"url":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/","url":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/","name":"Buttons \/ Button - Pitchfork Theme for WordPress","isPartOf":{"@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/#website"},"primaryImageOfPage":{"@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/#primaryimage"},"image":{"@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/#primaryimage"},"thumbnailUrl":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png","datePublished":"2024-05-24T17:29:40+00:00","dateModified":"2024-05-24T22:47:13+00:00","breadcrumb":{"@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/#primaryimage","url":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png","contentUrl":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-content\/uploads\/sites\/79\/2024\/05\/image-4.png","width":1846,"height":996},{"@type":"BreadcrumbList","@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/button\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/comm.engineering.asu.edu\/pitchfork\/"},{"@type":"ListItem","position":2,"name":"Documents","item":"https:\/\/comm.engineering.asu.edu\/pitchfork\/docs\/"},{"@type":"ListItem","position":3,"name":"Buttons \/ Button"}]},{"@type":"WebSite","@id":"https:\/\/comm.engineering.asu.edu\/pitchfork\/#website","url":"https:\/\/comm.engineering.asu.edu\/pitchfork\/","name":"Pitchfork Theme for WordPress","description":"an ASU Engineering theme for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/comm.engineering.asu.edu\/pitchfork\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-json\/wp\/v2\/pitchfork-docs\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-json\/wp\/v2\/pitchfork-docs"}],"about":[{"href":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-json\/wp\/v2\/types\/pitchfork-docs"}],"wp:attachment":[{"href":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"pitchfork-docs-category","embeddable":true,"href":"https:\/\/comm.engineering.asu.edu\/pitchfork\/wp-json\/wp\/v2\/pitchfork-docs-category?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}