Skip to content

Commit b4501db

Browse files
Merge pull request #1963 from cfpb/ans_bem_fixes
BEM fixes
2 parents 10a1f09 + 0c6008d commit b4501db

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

docs/pages/fieldsets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ variation_groups:
2323
<legend class="a-legend">
2424
2525
Basic legend
26-
<small class="a-label__helper a-label__helper__block">Use block helper text for instructions</small>
26+
<small class="a-label__helper a-label__helper--block">Use block helper text for instructions</small>
2727
</legend>
2828
<div class="o-form__group">
2929
<fieldset class="o-form__fieldset">
@@ -46,7 +46,7 @@ variation_groups:
4646
<legend class="a-legend">
4747
4848
Basic legend
49-
<small class="a-label__helper a-label__helper__block">Use block helper text for instructions</small>
49+
<small class="a-label__helper a-label__helper--block">Use block helper text for instructions</small>
5050
</legend>
5151
<div class="o-form__group">
5252
<fieldset class="o-form__fieldset">
@@ -74,7 +74,7 @@ variation_groups:
7474
<legend class="a-legend">
7575
7676
Basic legend
77-
<small class="a-label__helper a-label__helper__block">Use block helper text for instructions</small>
77+
<small class="a-label__helper a-label__helper--block">Use block helper text for instructions</small>
7878
</legend>
7979
<div class="o-form__group">
8080
<fieldset class="o-form__fieldset">
@@ -104,7 +104,7 @@ variation_groups:
104104
<legend class="a-legend">
105105
106106
Basic legend
107-
<small class="a-label__helper a-label__helper__block">Use block helper text for instructions</small>
107+
<small class="a-label__helper a-label__helper--block">Use block helper text for instructions</small>
108108
</legend>
109109
110110
<div class="m-form-field m-form-field--radio m-form-field--lg-target">

docs/pages/helper-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variation_groups:
88
<label class="a-label a-label--heading" for="helper-block-example">
99
1010
Label
11-
<small class="a-label__helper a-label__helper__block">Use block helper text for instructions</small>
11+
<small class="a-label__helper a-label__helper--block">Use block helper text for instructions</small>
1212
</label>
1313
1414

docs/pages/heroes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ variation_groups:
160160
variation_implementation: >+
161161
#### Bleeding illustrations
162162
163-
When using an illustration that bleeds top to bottom at larger screen sizes, add the `__bleeding` modifier to the hero and add an additional `m-hero_bleeding-image` as a sibling to `m-hero__image`.
163+
When using an illustration that bleeds top to bottom at larger screen sizes, add the `--bleeding` modifier to the hero and add an additional `m-hero__bleeding-image` as a sibling to `m-hero__image`.
164164
165165
166166
#### Customizing illustrations

docs/pages/variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ variation_groups:
290290
// Headings
291291
292292
// .a-heading__icon
293-
@heading__icon: var(--black);
294-
@heading__icon__hover: @link-text-hover;
293+
@heading-icon: var(--black);
294+
@heading-icon-hover: @link-text-hover;
295295
296296
// Headers
297297

packages/cfpb-forms/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ Appears with labels and label headings.
153153

154154
<label class="a-label a-label--heading">
155155
A label heading
156-
<small class="a-label__helper a-label__helper__block">Helper text</small>
156+
<small class="a-label__helper a-label__helper--block">Helper text</small>
157157
</label>
158158

159159
```html
160160
<label class="a-label a-label--heading">
161161
A label heading
162-
<small class="a-label__helper a-label__helper__block">Helper text</small>
162+
<small class="a-label__helper a-label__helper--block">Helper text</small>
163163
</label>
164164
```
165165

packages/cfpb-layout/usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ overlapping since they will span the height of the entire `.content-l` element.
612612
<br>
613613
Half-width column (spans 6/12 columns)
614614
</div>
615-
<div class="content-l__col content-l__col-1-2 content-l__col__before-divider">
615+
<div class="content-l__col content-l__col-1-2">
616616
<img src="https://dummyimage.com/600x320/addc91/101820" alt="Placeholder image">
617617
<br>
618618
Half-width column (spans 6/12 columns)
@@ -623,10 +623,10 @@ overlapping since they will span the height of the entire `.content-l` element.
623623
<div class="content-l__col content-l__col-1-3">
624624
Third-width column (spans 4/12 columns)
625625
</div>
626-
<div class="content-l__col content-l__col-1-3 content-l__col__before-divider">
626+
<div class="content-l__col content-l__col-1-3">
627627
Third-width column (spans 4/12 columns)
628628
</div>
629-
<div class="content-l__col content-l__col-1-3 content-l__col__before-divider">
629+
<div class="content-l__col content-l__col-1-3">
630630
Third-width column (spans 4/12 columns)
631631
</div>
632632
</div>
@@ -638,24 +638,24 @@ overlapping since they will span the height of the entire `.content-l` element.
638638
<br>
639639
Half-width column (spans 6/12 columns)
640640
</div>
641-
<div class="content-l__col content-l__col-1-2 content-l__col__before-divider">
641+
<div class="content-l__col content-l__col-1-2">
642642
<img src="https://dummyimage.com/600x320/addc91/101820" alt="Placeholder image">
643643
<br>
644644
Half-width column (spans 6/12 columns)
645645
</div>
646646
</div>
647647
<br>
648648
<!-- Starting a new .content-l so that the dividers from
649-
.content-l__col.content-l__col-1-2.content-l__col__before-divider
649+
.content-l__col.content-l__col-1-2
650650
won't overlap the .content-l__col-1-3 columns. -->
651651
<div class="content-l">
652652
<div class="content-l__col content-l__col-1-3">
653653
Third-width column (spans 4/12 columns)
654654
</div>
655-
<div class="content-l__col content-l__col-1-3 content-l__col__before-divider">
655+
<div class="content-l__col content-l__col-1-3">
656656
Third-width column (spans 4/12 columns)
657657
</div>
658-
<div class="content-l__col content-l__col-1-3 content-l__col__before-divider">
658+
<div class="content-l__col content-l__col-1-3">
659659
Third-width column (spans 4/12 columns)
660660
</div>
661661
</div>

packages/cfpb-typography/src/atoms/headings.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.a-heading__icon {
22
.heading-4();
33

4-
color: @heading__icon;
4+
color: @heading-icon;
55

66
a& {
7-
.u-link--colors( @heading__icon, @heading__icon__hover );
7+
.u-link--colors( @heading-icon, @heading-icon-hover );
88

99
border-width: 0;
1010
}

packages/cfpb-typography/src/cfpb-typography.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
// Headings
3535

3636
// .a-heading__icon
37-
@heading__icon: var(--black);
38-
@heading__icon__hover: @link-text-hover;
37+
@heading-icon: var(--black);
38+
@heading-icon-hover: @link-text-hover;
3939

4040
// Headers
4141

packages/cfpb-typography/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Color variables referenced in comments are from [@cfpb/cfpb-core's brand-colors.
5757
// Headings
5858
5959
// .a-heading__icon
60-
@heading__icon: var(--black);
61-
@heading__icon__hover: @link-text-hover;
60+
@heading-icon: var(--black);
61+
@heading-icon-hover: @link-text-hover;
6262
6363
// Headers
6464

0 commit comments

Comments
 (0)