Skip to content

Commit b4363c1

Browse files
author
Kurt Medley
committed
fix(stories): clean up HTML classes and prose hover
1 parent 1d96769 commit b4363c1

12 files changed

Lines changed: 16 additions & 28 deletions

File tree

apps/html/stories/container/fragments/fluid.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="c1-story-bg-sand-alt c1-story-pad-16">
22
<div
3-
class="cdr-container cdr-container--fluid"
4-
class="c1-story-bg-white c1-story-border-soft"
3+
class="cdr-container cdr-container--fluid c1-story-bg-white c1-story-border-soft"
54
>
65
<div class="c1-story-pad-16">
76
<strong>fluid</strong> container content

apps/html/stories/container/fragments/side-by-side.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<div class="c1-story-grid c1-story-gap-16">
22
<div class="c1-story-bg-sand-alt c1-story-pad-16">
33
<div
4-
class="cdr-container cdr-container--static"
5-
class="c1-story-bg-white c1-story-border-soft"
4+
class="cdr-container cdr-container--static c1-story-bg-white c1-story-border-soft"
65
>
76
<div class="c1-story-pad-16">
87
<strong>static</strong> container content
@@ -11,8 +10,7 @@
1110
</div>
1211
<div class="c1-story-bg-sand-alt c1-story-pad-16">
1312
<div
14-
class="cdr-container cdr-container--fluid"
15-
class="c1-story-bg-white c1-story-border-soft"
13+
class="cdr-container cdr-container--fluid c1-story-bg-white c1-story-border-soft"
1614
>
1715
<div class="c1-story-pad-16">
1816
<strong>fluid</strong> container content

apps/html/stories/container/fragments/static.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="c1-story-bg-sand-alt c1-story-pad-16">
22
<div
3-
class="cdr-container cdr-container--static"
4-
class="c1-story-bg-white c1-story-border-soft"
3+
class="cdr-container cdr-container--static c1-story-bg-white c1-story-border-soft"
54
>
65
<div class="c1-story-pad-16">
76
<strong>static</strong> container content

apps/html/stories/form-error/fragments/active.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="cdr-form-error --active-error c1-story-flex c1-story-align-center c1-story-gap-4">
22
<span
3-
class="cdr-form-error__icon"
4-
class="c1-story-inline-flex c1-story-align-center c1-story-justify-center c1-story-h-20"
3+
class="cdr-form-error__icon c1-story-inline-flex c1-story-align-center c1-story-justify-center c1-story-h-20"
54
>
65
<svg
76
aria-hidden="true"

apps/html/stories/input/fragments/error.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
<div class="cdr-label-standalone__post-content">
1717
<div class="cdr-form-error --active-error c1-story-flex c1-story-align-center c1-story-gap-4">
1818
<span
19-
class="cdr-form-error__icon"
20-
class="c1-story-inline-flex c1-story-align-center c1-story-justify-center c1-story-h-20"
19+
class="cdr-form-error__icon c1-story-inline-flex c1-story-align-center c1-story-justify-center c1-story-h-20"
2120
>
2221
<svg
2322
aria-hidden="true"

apps/html/stories/prose/fragments/component-mix.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
<article class="cdr-prose c1-story-max-72ch">
33
<h2>Mixed content with Cedar components</h2>
44
<p>
5-
Prose styling should not leak into Cedar components. Wrap component
6-
blocks with <code>.cdr-not-prose</code> when needed.
5+
Prose styling should not leak into Cedar components. Wrap component blocks
6+
with <code>.cdr-not-prose</code> when needed.
77
</p>
88
<div
9-
class="cdr-not-prose"
10-
class="c1-story-grid c1-story-gap-12 c1-story-pad-16 c1-story-border-prose"
9+
class="cdr-not-prose c1-story-grid c1-story-gap-12 c1-story-pad-16 c1-story-border-prose"
1110
>
1211
<h3 class="cdr-title">Component title</h3>
1312
<a class="cdr-link" href="#">Cedar link</a>
1413
<button
1514
type="button"
16-
class="cdr-button cdr-button--secondary cdr-button--medium"
17-
class="c1-story-justify-self-start"
15+
class="cdr-button cdr-button--secondary cdr-button--medium c1-story-justify-self-start"
1816
>
1917
Secondary action
2018
</button>

apps/html/stories/prose/fragments/dark-surface.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="c1-story-grid c1-story-gap-24 c1-story-pad-24">
22
<article
3-
class="cdr-prose cdr-prose--invert"
4-
class="c1-story-bg-dark-rest c1-story-pad-24 c1-story-radius-softer c1-story-max-60ch"
3+
class="cdr-prose cdr-prose--invert c1-story-bg-dark-rest c1-story-pad-24 c1-story-radius-softer c1-story-max-60ch"
54
>
65
<h2>Prose on dark surfaces</h2>
76
<p>

apps/html/stories/prose/fragments/escape-hatch.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ <h2>Prose with embedded components</h2>
66
Cedar components or custom UI blocks.
77
</p>
88
<div
9-
class="cdr-not-prose"
10-
class="c1-story-pad-16 c1-story-border-prose-dashed"
9+
class="cdr-not-prose c1-story-pad-16 c1-story-border-prose-dashed"
1110
>
1211
<p class="cdr-text">This block opts out of prose styling.</p>
1312
<button type="button" class="cdr-button cdr-button--primary cdr-button--medium">

apps/html/stories/prose/fragments/invert.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="c1-story-grid c1-story-gap-24 c1-story-pad-24">
22
<article
3-
class="cdr-prose cdr-prose--invert"
4-
class="c1-story-bg-dark-rest c1-story-pad-24 c1-story-radius-softer c1-story-max-60ch"
3+
class="cdr-prose cdr-prose--invert c1-story-bg-dark-rest c1-story-pad-24 c1-story-radius-softer c1-story-max-60ch"
54
>
65
<h2>Dark surface</h2>
76
<p>

apps/html/stories/split-surface/fragments/bottom.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div class="c1-story-bg-sand c1-story-pad-24">
22
<div
3-
class="cdr-split-surface cdr-split-surface--bottom"
4-
class="c1-story-split-surface-white"
3+
class="cdr-split-surface cdr-split-surface--bottom c1-story-split-surface-white"
54
>
65
<div class="cdr-split-surface__top">
76
<img

0 commit comments

Comments
 (0)