Skip to content

Commit 13a348b

Browse files
authored
refactor: colors docs optimization (#99)
refactor: let's use a dl dt/dd here for semantics
1 parent 8cb4586 commit 13a348b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

source/_patterns/colors/intro.hbs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@
66
<p>Background colors define their own foreground color by so named on-colors. For using the DB Design System with SCSS, we provide a wide range of SCSS placeholders and utility
77
classes that automatically style e.g. text and links based on their current background color. For more information have a look at the usage section.</p>
88

9-
109
<h2>Color Scheme – Primary (Example)</h2>
1110
<p>The following example shows the available colors for the primary brand color.
1211
Each defined color has an interactive mode which means that colors for hover and pressed states are defined.</p>
13-
<ul>
14-
<li><b>Primary</b> – base key color</li>
15-
<li><b>On Primary</b> – is applied to content (icons, text, etc.) that sits on top of primary</li>
16-
<li><b>Primary Background-Light</b> – background color for current key color. Only used for backrounds.</li>
17-
<li><b>Primary Background-Transparent</b> – Transparent or semi transparent backgrounds for current key color, e.g. used for form field backgrounds.</li>
18-
<li><b>On Primary Background</b> – is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent).</li>
19-
<li><b>On Primary Background Weak</b> – is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent) and is a variant to weaken content on primary backgrounds.
20-
</li>
21-
</ul>
12+
<dl class="DO-NOT-COPY-THIS-CLASS-example-docs-listing">
13+
<dt>Primary</dt><dd>base key color</dd>
14+
<dt>On Primary</dt><dd>is applied to content (icons, text, etc.) that sits on top of primary</dd>
15+
<dt>Primary Background-Light</dt><dd>background color for current key color. Only used for backrounds.</dd>
16+
<dt>Primary Background-Transparent</dt><dd>Transparent or semi transparent backgrounds for current key color, e.g. used for form field backgrounds.</dd>
17+
<dt>On Primary Background</dt><dd>is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent).</dd>
18+
<dt>On Primary Background Weak</dt><dd>is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent) and is a variant to weaken content on primary backgrounds.</dd>
19+
</dl>
2220

2321
<h3>Color Scheme Illustration</h3>
2422
<figure class="color-scheme-illustration">

0 commit comments

Comments
 (0)