Skip to content
Snippets Groups Projects
Unverified Commit 4569c101 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #2980304 by dww, jrockowitz, Rithesh BK, Kristen Pol, andrewmacpherson,...

Issue #2980304 by dww, jrockowitz, Rithesh BK, Kristen Pol, andrewmacpherson, dorianwinterfeld, bnjmnm: Seven theme's details/summary focus style is broken/missing in some browsers
parent 2718a80a
No related branches found
No related tags found
8 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage",!13Resolve #2903456
......@@ -164,6 +164,16 @@ details summary:focus {
text-decoration: underline;
outline: none;
}
/**
* Unfortunately, text-decoration for details summary is not supported on all
* browsers. So we add a span (which can handle text-decoration) in Seven's
* templates/details.html.twig. In case there are other details templates that
* don't have the span, we leave the text-decoration in the parent selector.
* This provides maximum compatibility and coverage with minimal disruption.
*/
details summary:focus span {
text-decoration: underline;
}
img {
max-width: 100%;
height: auto;
......
......@@ -30,7 +30,7 @@
]
%}
<summary{{ summary_attributes.addClass(summary_classes) }}>
{{- title -}}
<span>{{ title }}</span>
</summary>
{%- endif -%}
<div class="seven-details__wrapper details-wrapper">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment