Skip to content

Commit 102998e

Browse files
committed
feat: update code stories to include code, pre and .iati-code elements
1 parent e8eb7f0 commit 102998e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/scss/typography/typography.stories.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,20 @@ export const Quotes: Story = {
111111

112112
export const Code: Story = {
113113
render: () => html`
114-
<h3>This heading contains <span class="iati-code">inline code</span>.</h3>
114+
<h3>
115+
This heading contains <code>inline code</code>.
116+
</h3>
115117
<p>
116-
This paragraph contains
117-
<span class="iati-code">inline code</span>.
118+
This paragraph contains <code>inline code</code>.
119+
</p>
120+
<pre>
121+
<code>
122+
print("This is a block of code")
123+
</code>
124+
</pre>
125+
<p>
126+
This paragraph contains a <span class="iati-code">reference</span> to an element in the standard.
118127
</p>
119-
<code class="iati-code iati-code--block">
120-
<span>print("This is a block of code")</span>
121-
</code>
122128
<p>
123129
This paragraph contains a key-binding:
124130
<kbd class="iati-kbd">Ctrl</kbd> + <kbd class="iati-kbd">C</kbd>

0 commit comments

Comments
 (0)