mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
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:
parent
de1586c6ed
commit
98136e0f6d
@ -402,7 +402,8 @@ module SassHelpers
|
|||||||
contents << _impl_status_row('Ruby Sass', ruby) unless ruby.nil?
|
contents << _impl_status_row('Ruby Sass', ruby) unless ruby.nil?
|
||||||
|
|
||||||
if block_given?
|
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
|
end
|
||||||
|
|
||||||
_concat(content_tag(:dl, contents, class: 'impl-status sl-c-description-list sl-c-description-list--horizontal'))
|
_concat(content_tag(:dl, contents, class: 'impl-status sl-c-description-list sl-c-description-list--horizontal'))
|
||||||
|
Loading…
Reference in New Issue
Block a user