Skip to content

Commit edc70f1

Browse files
committed
refactor: slight optimizations
1 parent 07e392c commit edc70f1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

db-ux-design-system.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h2>It’s Storytime!</h2>
158158
<h3 data-variant="light">Our history</h3>
159159
<div>
160160
<img src="assets/custom/box.svg" alt="Box" />
161-
<span>
161+
<p>
162162
Lorem ipsum dolor sit amet consectetur. Urna fermentum egestas
163163
platea tempor laoreet in tellus pellentesque velit. Auctor vitae
164164
tortor in volutpat. Lorem dolor fermentum eget neque amet sapien
@@ -167,7 +167,7 @@ <h3 data-variant="light">Our history</h3>
167167
volutpat. Blandit in mattis libero quam. Sed sed porta mus nam nam
168168
ipsum nascetur augue. Eu maecenas erat sociis morbi arcu dolor.
169169
Massa commodo ut vitae sit nec.
170-
</span>
170+
</p>
171171
</div>
172172
</section>
173173
<section class="section-with-max-width">

styles/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
justify-items: center;
8181
gap: var(--db-spacing-fixed-xl);
8282

83-
> p {
83+
p {
8484
/* 45rem are ~768 px for tablet*/
8585
max-inline-size: 45rem;
8686
}
@@ -144,6 +144,10 @@
144144
flex-direction: row;
145145
}
146146
}
147+
148+
p {
149+
max-inline-size: 40rem;
150+
}
147151
}
148152

149153
.section-with-max-width {

0 commit comments

Comments
 (0)