Add href to compatibility callout toggle (#625)

This will ensure browsers allow the toggles to be tabbed to.

Fixes #598.
This commit is contained in:
Jennifer Thakar 2022-08-22 13:19:09 -07:00 committed by GitHub
parent de1586c6ed
commit 98136e0f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))