Merge pull request #8678 from colinux/fix-explication-read-more-button
fix(a11y): improve Explication "lire plus" accessibility
This commit is contained in:
commit
126819939b
1 changed files with 4 additions and 5 deletions
|
@ -4,8 +4,7 @@
|
|||
= render SimpleFormatComponent.new(@champ.description, allow_a: true)
|
||||
|
||||
- if @champ.collapsible_explanation_enabled? && @champ.collapsible_explanation_text.present?
|
||||
%div
|
||||
%p.fr-my-2w
|
||||
%button{ type: "button", "aria-controls": dom_id(@champ, :explanation), "aria-expanded": "false", href: dom_id(@champ, :explanation) } Lire plus
|
||||
%p.fr-collapse{ id: dom_id(@champ, :explanation) }
|
||||
= @champ.collapsible_explanation_text
|
||||
%p.fr-my-2w
|
||||
%button{ type: "button", "aria-controls": dom_id(@champ, :explanation), "aria-expanded": "false", href: dom_id(@champ, :explanation), class: "fr-btn ft-btn--sm fr-btn--secondary" } Lire plus
|
||||
%p.fr-collapse{ id: dom_id(@champ, :explanation) }
|
||||
= @champ.collapsible_explanation_text
|
||||
|
|
Loading…
Reference in a new issue