{"id":613582,"date":"2023-08-31T18:37:36","date_gmt":"2023-09-01T01:37:36","guid":{"rendered":"https:\/\/www.esri.com\/about\/newsroom\/?post_type=arcuser&#038;p=613582"},"modified":"2023-08-31T18:37:36","modified_gmt":"2023-09-01T01:37:36","slug":"accessible-arcade-editor","status":"publish","type":"arcuser","link":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor","title":{"rendered":"Accessibility and Arcade: Working in Color"},"author":1031,"featured_media":0,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"sync_status":"","episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","castos_file_data":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","_links_to":"","_links_to_target":""},"categories":[10392,10832,461441],"tags":[287782,35332,486372,486432],"arcuser_issues":[486292],"class_list":["post-613582","arcuser","type-arcuser","status-publish","format-standard","hentry","category-arcgis-online","category-developer-technology","category-equity-social-justice","tag-accessibility","tag-arcgis-arcade","tag-inclusion","tag-low-vision","arcuser_issues-arcuser-summer-2023"],"acf":{"short_description":"A new accessible color palette for syntax highlighting has been added to the editor in Map Viewer to add people with low vision.\r\n","pdf":{"host_remotely":false,"file":613632,"file_url":""},"flexible_content":[{"acf_fc_layout":"content","content":"With the November 2022 release of ArcGIS Online, a new ArcGIS Arcade editor was introduced to the platform. This editor provides a variety of improvements to help users author their expressions quickly and efficiently. Since then, Esri has been exploring ways to enhance the experience of users leveraging Arcade in their work. With the June 2023 release of ArcGIS Online, a new accessible color palette for syntax highlighting has been added to the editor in Map Viewer.\r\n<h3>Color in Code<\/h3>\r\nUsing color to provide context is a common practice in design, and syntax highlighting is no exception. Syntax highlighting, otherwise known as code colorization, is a method used to help quickly differentiate elements within a script. It can help authors troubleshoot issues in their script while simultaneously improving code readability.\r\n<h3>Color Vision Deficiencies<\/h3>\r\nA color vision deficiency\u2013colloquially referred to as color blindness\u2013is an inability for an individual to distinguish certain shades or colors. The type and severity of color vision deficiency can vary greatly between individuals. Table 1 contains a brief overview of the various types of color vision deficiencies.\r\n\r\n&nbsp;"},{"acf_fc_layout":"image","image":613682,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h3>Accessibility in ArcGIS Online<\/h3>\r\nAccessibility is the practice of developing and producing content that is usable for all individuals, regardless of their physical or cognitive capabilities. Esri is committed to ensuring its products are accessible, and ArcGIS Online is no exception.\r\nTo achieve this objective, Esri leverages the <a href=\"https:\/\/www.w3.org\/TR\/WCAG20\/\">Web Content Accessibility Guidelines<\/a> (WCAG 2.0), an internationally recognized set of standards used for developing accessible web content and software. The new color palette used to highlight syntax in the Arcade editor was designed to be compliant with WCAG 2.0 special criterion 1.4.3. This criterion specifies that the contrast ratio between foreground and background elements must be at least 4.5:1. This ensures that text is still legible for individuals with moderately low vision or other color vision deficiencies.\r\n<h3>A Brief History of Color in Arcade<\/h3>\r\nIf you\u2019ve used the Arcade editor before, you\u2019ll know that syntax highlighting isn\u2019t new. All versions of the editor have leveraged color to varying degrees to differentiate syntax elements. In the initial release of the editor, minimal highlighting was used to signify text and numbers.\r\n\r\nWithin the new editor, these colors were expanded to include other syntax elements such as keywords and comments. While this was a huge enhancement from the previous version, there was some overlap in the colors used for different elements and, therefore, room for improvement. The editor\u2019s new color palette has been designed to fulfill two objectives:\r\n<ul>\r\n \t<li>Better differentiate syntax elements within an Arcade expression<\/li>\r\n \t<li>Ensure the element contrast is compliant with WCAG 2.0 1.4.3 standards, both for individuals with typical color vision and with those with color vision deficiencies.<\/li>\r\n<\/ul>\r\n<h3>Out with the Old, In with the New (Colors)<\/h3>\r\nIf you\u2019ve already seen the new syntax colors, you might have noticed there are some similarities between the old and new color palettes. While the hue and saturation of many of the element colors have changed, Esri tried to maintain consistency where possible. For example, text is still red, and numbers are still green.\r\n\r\nThe new colors and the respective elements they\u2019re assigned to in the editor are listed in Table 2. Right now, you\u2019ll be able to see these new colors in use anywhere in Map Viewer that leverages the Arcade editor (e.g., styles, labels, pop-ups, and forms).\r\nEnsuring that color isn\u2019t the only way information is conveyed is an important tenet of accessible web design. The color palette we\u2019ve implemented for highlighting syntax in the editor has been tested to ensure it meets WCAG 2.0 contrast standards for all types of color vision deficiencies.\r\n\r\n&nbsp;"},{"acf_fc_layout":"image","image":613692,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":613712,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":613722,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":613732,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":613742,"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"While syntax color certainly isn\u2019t the only method for conveying context in the editor, Esri wants to ensure that the contrast of text is sufficient for all individuals working with Arcade expressions in ArcGIS Online.\r\n<h3>Conclusion<\/h3>\r\nIf you haven\u2019t already had the chance, try out our new syntax colors. Aside from Map Viewer, they\u2019re also available in the <a href=\"http:\/\/developers.arcgis.com\/arcade\/playground\/\">ArcGIS Arcade playground<\/a>.\r\n\r\nEsri is also hoping to leverage these syntax colors in other areas where Arcade is used in ArcGIS. Finally, a WCAG 2.0 compliant color palette for a dark version of the editor is being developed. For more information on enhancements to the Arcade editor, read these blog posts,<a href=\"https:\/\/tinyurl.com\/yt6sz2sh\"> \u201cIntroducing the new Arcade Editor in ArcGIS Online\u201d<\/a>\u00a0 and <a href=\"https:\/\/tinyurl.com\/4zrhf72r\">\u201cDiscover the powerful new features of the Arcade Editor\u201d<\/a>."}],"references":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Arcade editor has accessible syntax features<\/title>\n<meta name=\"description\" content=\"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accessibility and Arcade: Working in Color\" \/>\n<meta property=\"og:description\" content=\"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor\" \/>\n<meta property=\"og:site_name\" content=\"Esri\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2023\/08\/accessibleArcade_banner.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Esri\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor\",\n\t            \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor\",\n\t            \"name\": \"Arcade editor has accessible syntax features\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#website\"\n\t            },\n\t            \"datePublished\": \"2023-09-01T01:37:36+00:00\",\n\t            \"description\": \"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Home\",\n\t                    \"item\": \"https:\/\/www.esri.com\/about\/newsroom\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"Accessibility and Arcade: Working in Color\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#website\",\n\t            \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/\",\n\t            \"name\": \"Esri\",\n\t            \"description\": \"Esri Newsroom\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.esri.com\/about\/newsroom\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/82e5143bcdebadf8fd64d84e503ca468\",\n\t            \"name\": \"Monica Pratt\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/image\/\",\n\t                \"url\": \"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg\",\n\t                \"contentUrl\": \"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg\",\n\t                \"caption\": \"Monica Pratt\"\n\t            },\n\t            \"description\": \"Monica Pratt is the founding and current editor of ArcUser magazine, the executive editor of ArcNews magazine, the editor of Esri Globe and head of the Publications team at Esri. She has been writing on technology topics, specializing in GIS, for more than 30 years. Before joining Esri in 1997, she worked for newspapers and in the financial industry.\",\n\t            \"sameAs\": [\n\t                \"https:\/\/x.com\/ArcUser\"\n\t            ],\n\t            \"url\": \"\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Arcade editor has accessible syntax features","description":"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.","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:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor","og_locale":"en_US","og_type":"article","og_title":"Accessibility and Arcade: Working in Color","og_description":"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.","og_url":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor","og_site_name":"Esri","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","og_image":[{"url":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2023\/08\/accessibleArcade_banner.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@Esri","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor","url":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor","name":"Arcade editor has accessible syntax features","isPartOf":{"@id":"https:\/\/www.esri.com\/about\/newsroom\/#website"},"datePublished":"2023-09-01T01:37:36+00:00","description":"New features in the ArcGIS Arcade editor makes the syntax coloration more accessible for a variety of color vision deficiencies.","breadcrumb":{"@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/about\/newsroom\/arcuser\/accessible-arcade-editor#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/about\/newsroom"},{"@type":"ListItem","position":2,"name":"Accessibility and Arcade: Working in Color"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/about\/newsroom\/#website","url":"https:\/\/www.esri.com\/about\/newsroom\/","name":"Esri","description":"Esri Newsroom","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/about\/newsroom\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/82e5143bcdebadf8fd64d84e503ca468","name":"Monica Pratt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/about\/newsroom\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg","contentUrl":"https:\/\/www.esri.com\/about\/newsroom\/app\/uploads\/2018\/08\/MonicaMug_agol2.jpg","caption":"Monica Pratt"},"description":"Monica Pratt is the founding and current editor of ArcUser magazine, the executive editor of ArcNews magazine, the editor of Esri Globe and head of the Publications team at Esri. She has been writing on technology topics, specializing in GIS, for more than 30 years. Before joining Esri in 1997, she worked for newspapers and in the financial industry.","sameAs":["https:\/\/x.com\/ArcUser"],"url":""}]}},"sort_order":"16","_links":{"self":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser\/613582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser"}],"about":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/types\/arcuser"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/users\/1031"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser\/613582\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/media?parent=613582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/categories?post=613582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/tags?post=613582"},{"taxonomy":"arcuser_issues","embeddable":true,"href":"https:\/\/www.esri.com\/about\/newsroom\/wp-json\/wp\/v2\/arcuser_issues?post=613582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}