always show out-of-body tags for better accessibility

staging
multiple creatures 2019-07-19 19:30:48 -05:00
parent 2f8ac8838d
commit 348dd5aa35
2 changed files with 5 additions and 3 deletions

View File

@ -7,11 +7,13 @@
font-style: italic;
font-size: 12px;
text-align: right;
margin-bottom: 4px;
}
details.tags {
p.tags {
color: lighten($dark-text-color, 20%);
font-size: 12px;
text-align: right;
margin-bottom: 4px;
a {
color: darken($secondary-text-color, 20%);
@ -23,7 +25,7 @@
p.signature {
color: $dark-text-color;
}
details.tags {
p.tags {
color: $dark-text-color;
a {

View File

@ -241,7 +241,7 @@ class Formatter
unless status.tags.blank?
tags = status.tags.pluck(:name).reject { |t| t.end_with?('.') }.map{ |t| "##{t}" }
tags = encode_and_link_urls(tags.join(' '))
html = "#{html}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>"
html = "#{html}<p class=\"tags\">#{tags} \xf0\x9f\x8f\xb7</p>"
end
html.html_safe # rubocop:disable Rails/OutputSafety