Using `<a>` tags with no `href` means these elements cannot be activated by keyboard users, so we're replacing them with buttons. In the future we probably want to add more consistency so all toggle buttons use the same code. We might also add styles depending on the `aria-expanded` property.
22 lines
808 B
Plaintext
22 lines
808 B
Plaintext
<% if @process.description.present? %>
|
|
<p class="title"><%= t("legislation.processes.header.description") %></p>
|
|
<%= markdown @process.description %>
|
|
<% end %>
|
|
|
|
<%= render SDG::TagListComponent.new(@process, linkable: false) %>
|
|
|
|
<% if @process.additional_info.present? %>
|
|
<div id="additional_info" class="is-hidden" data-toggler=".is-hidden">
|
|
<hr>
|
|
<p class="title"><%= t("legislation.processes.header.additional_info") %></p>
|
|
<%= markdown @process.additional_info if @process.additional_info %>
|
|
</div>
|
|
|
|
<button type="button" class="button" data-toggle="additional_info"
|
|
<% if banner_color? %>
|
|
style="background:<%= process.font_color %>; color:<%= process.background_color %>;"
|
|
<% end %>>
|
|
<%= t("legislation.processes.header.additional_info") %>
|
|
</button>
|
|
<% end %>
|