Skip to content

Commit

Permalink
convivial-bootstrap-32228: Update paragraph template with paragraph__…
Browse files Browse the repository at this point in the history
…content wrapper.
  • Loading branch information
honzapara committed Jun 7, 2023
1 parent 2a0d91d commit e15dcff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions components/paragraphs/_paragraphs-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@

// Hide heading but keep available for screen readers.
&.hide-heading {
.containerised {
> h2 {
> .containerised {
> h2,
> .paragraph__content > h2 {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion css/style.css

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions templates/paragraphs/paragraph.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
{% block paragraph %}
<div{{ attributes.addClass(classes) }}>
<div class="containerised">
{% block content %}
{{ content }}
{% endblock %}
<div class="paragraph__content">
{% block content %}
{{ content }}
{% endblock %}
</div>
</div>
</div>
{% endblock paragraph %}

0 comments on commit e15dcff

Please sign in to comment.