{"id":947,"date":"2023-08-28T21:25:17","date_gmt":"2023-08-28T21:25:17","guid":{"rendered":"https:\/\/html5accessibility.com\/stuff\/?p=947"},"modified":"2023-08-29T14:12:11","modified_gmt":"2023-08-29T14:12:11","slug":"quick-and-very-dirty-target-size-checker","status":"publish","type":"post","link":"https:\/\/html5accessibility.com\/stuff\/2023\/08\/28\/quick-and-very-dirty-target-size-checker\/","title":{"rendered":"quick and very dirty target size checker"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-949 size-full\" src=\"https:\/\/html5accessibility.com\/stuff\/wp-content\/uploads\/2023\/08\/Capture.jpg\" alt=\"Patrick and David pose in front of a billboard outside of Accessibility World Headquarters, which is displaying the full text of 2.5.8 target size \" width=\"903\" height=\"436\" srcset=\"https:\/\/html5accessibility.com\/stuff\/wp-content\/uploads\/2023\/08\/Capture.jpg 903w, https:\/\/html5accessibility.com\/stuff\/wp-content\/uploads\/2023\/08\/Capture-300x145.jpg 300w, https:\/\/html5accessibility.com\/stuff\/wp-content\/uploads\/2023\/08\/Capture-768x371.jpg 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/p>\n<p><b>updated<\/b>\u00a029\/08\/23<\/p>\n<p>WCAG 2.2 is almost upon us, many of us have started testing the new Success Criteria for paying clients. I wanted to find a way to speed up the testing of <a href=\"https:\/\/www.w3.org\/TR\/WCAG22\/#target-size-minimum\" rel=\"nofollow\">2.5.8 Target Size (Minimum)<\/a>.<\/p>\n<p>What I produced with the <a href=\"https:\/\/chat.openai.com\/share\/44300874-351e-4c4e-a760-f6032ac1d8a0\"><em>help\u00a0<\/em>of ChatGPT<\/a> is a quick and very dirty <a href=\"https:\/\/cdpn.io\/pen\/debug\/YzdwWZw\">target size bookmarklet<\/a><\/p>\n<h2 dir=\"auto\" tabindex=\"-1\">What does it do?<\/h2>\n<ol dir=\"auto\">\n<li>identifies interactive elements.<\/li>\n<li>works out the centre of the element.<\/li>\n<li>draws a semi-transparent 24&#215;24 pixel circle based on the centre of the element.<\/li>\n<li>if the element has a height or width less than 24 pixels the circle is blue.<\/li>\n<li>if the element has a height or width 24 pixels or greater the circle is green with a solid border.<\/li>\n<li>if an interactive element is identified as overlapping another interactive element a javascript alert is displayed with details of the number of overlapping elements.<\/li>\n<li>each element that overlaps another is given an\u00a0<code>aria-description=\"overlaps\"<\/code>.<\/li>\n<li>only visible elements will be included in the script output.<\/li>\n<\/ol>\n<p class=\"note\"><strong>Check it out, tear it apart, call me a no good punk, pour scorn, make it better, even better; make something else that works better! AND share it publicly without a restrictive licence<\/strong><\/p>\n<ul>\n<li>\u00a0<a href=\"https:\/\/cdpn.io\/pen\/debug\/YzdwWZw\">target size<\/a> bookmarklet<\/li>\n<li>target size bookmarklet <a href=\"https:\/\/github.com\/stevefaulkner\/targetsize\/tree\/main\">source code on GitHub<\/a><\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/z97qLNXeAMQ?si=eE5Le4BHZ2ZMh3Rk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>updated\u00a029\/08\/23 WCAG 2.2 is almost upon us, many of us have started testing the new Success Criteria for paying clients. I wanted to find a way to speed up the testing of 2.5.8 Target Size (Minimum). What I produced with the help\u00a0of ChatGPT is a quick and very dirty target size bookmarklet What does it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-947","post","type-post","status-publish","format-standard","hentry","category-htmlaccessibility"],"_links":{"self":[{"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/posts\/947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/comments?post=947"}],"version-history":[{"count":9,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":957,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/posts\/947\/revisions\/957"}],"wp:attachment":[{"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/media?parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/categories?post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5accessibility.com\/stuff\/wp-json\/wp\/v2\/tags?post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}