Skip to content

Commit e15dcff

Browse files
committed
convivial-bootstrap-32228: Update paragraph template with paragraph__content wrapper.
1 parent 2a0d91d commit e15dcff

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

components/paragraphs/_paragraphs-styles.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@
189189

190190
// Hide heading but keep available for screen readers.
191191
&.hide-heading {
192-
.containerised {
193-
> h2 {
192+
> .containerised {
193+
> h2,
194+
> .paragraph__content > h2 {
194195
position: absolute !important;
195196
clip: rect(1px, 1px, 1px, 1px);
196197
overflow: hidden;

css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/paragraphs/paragraph.html.twig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
{% block paragraph %}
4949
<div{{ attributes.addClass(classes) }}>
5050
<div class="containerised">
51-
{% block content %}
52-
{{ content }}
53-
{% endblock %}
51+
<div class="paragraph__content">
52+
{% block content %}
53+
{{ content }}
54+
{% endblock %}
55+
</div>
5456
</div>
5557
</div>
5658
{% endblock paragraph %}

0 commit comments

Comments
 (0)