From 98136e0f6d4aa92bfc349241f3c873ceb8e7a1a3 Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Mon, 22 Aug 2022 13:19:09 -0700 Subject: [PATCH] Add href to compatibility callout toggle (#625) This will ensure browsers allow the toggles to be tabbed to. Fixes #598. --- helpers/sass_helpers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/sass_helpers.rb b/helpers/sass_helpers.rb index 6ee15ee..11f2b04 100644 --- a/helpers/sass_helpers.rb +++ b/helpers/sass_helpers.rb @@ -402,7 +402,8 @@ module SassHelpers contents << _impl_status_row('Ruby Sass', ruby) unless ruby.nil? if block_given? - contents << content_tag(:div, content_tag(:a, '▶')) + # The no-op href here ensures that this toggle is focusable in browsers. + contents << content_tag(:div, content_tag(:a, '▶', href: 'javascript:;')) end _concat(content_tag(:dl, contents, class: 'impl-status sl-c-description-list sl-c-description-list--horizontal'))