Skip to content

Commit

Permalink
Add Article Callout Module (#473)
Browse files Browse the repository at this point in the history
* Add Article Callout Module

* Making updates based on PR feedback

* Updating changes to CSS addin width auto, updates to a-icon CSS,  and callout files

* Removing package-locks.json after resetting branch

* Removing package-lock.json files from branch
  • Loading branch information
rsalvucci authored Apr 1, 2022
1 parent 59ab1dd commit 159617b
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unpublished
* larva-patterns - Add `article-callout` module.
* larva-patterns - Update `c-email-field` component and 'newsletter' module to improve label and input accessibility.

## 0.5.6 - 03-29-2022
Expand Down
2 changes: 1 addition & 1 deletion build/css/larva-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.inline-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.inline.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/svg/defs/sprite.defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ <h2>youtube</h2>

</section>
<footer>
<p>Generated at Tue, 29 Mar 2022 15:23:22 GMT by <a href="https://github.com/jkphl/svg-sprite" target="_blank">svg-sprite</a>.</p>
<p>Generated at Fri, 01 Apr 2022 12:43:38 GMT by <a href="https://github.com/jkphl/svg-sprite" target="_blank">svg-sprite</a>.</p>
</footer>
</body>
</html>
6 changes: 3 additions & 3 deletions packages/larva-css/build/css/algorithms.common.inline.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva-css/build/css/utilities.common.inline.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
// Specific Icons

.lrv-a-icon-forward-slash,
.lrv-a-icon-bullet {
.lrv-a-icon-bullet,
.lrv-a-icon-vertical-pipe {
@include _a-icon-reset( before ) {
padding-right: $spacer-050;
};
Expand All @@ -79,6 +80,11 @@
--a-icon-content: '\02022';
}

.lrv-a-icon-vertical-pipe {
--a-icon-content: '\007C';
padding-right: $spacer-025;
}

.lrv-a-icon-after-arrow-top-left {
&::before {
position: absolute;
Expand All @@ -94,4 +100,5 @@
top: pmc-rem(-12);
background-color: $color-white;
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import 'setup';

$widths_map: (
'width-auto': auto,
'width-16': pmc-rem(16),
'width-30': pmc-rem(30),
'width-50': pmc-rem(50),
Expand All @@ -16,6 +17,7 @@ $widths_map: (
);

@include basic-utility-generator( 'width', (
width-auto,
width-16,
width-30,
width-50,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
article_callout_classes: '',
article_callout_title_text: 'Update',
article_callout_markup: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p class="article-callout larva // {{ article_callout_classes }}">
<span class="article-callout-title lrv-a-icon lrv-a-icon-after lrv-a-icon-vertical-pipe lrv-u-width-auto // {{ article_callout_primary_classes }}">{{ article_callout_title_text }}</span><span class="article-callout-text {{ article_callout_secondary_classes }}">{{ article_callout_markup|raw }}</span>
</p>
2 changes: 1 addition & 1 deletion packages/larva/build/css/larva-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.inline-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.inline.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/svg/defs/sprite.defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ <h2>youtube</h2>

</section>
<footer>
<p>Generated at Tue, 29 Mar 2022 15:23:22 GMT by <a href="https://github.com/jkphl/svg-sprite" target="_blank">svg-sprite</a>.</p>
<p>Generated at Fri, 01 Apr 2022 12:43:38 GMT by <a href="https://github.com/jkphl/svg-sprite" target="_blank">svg-sprite</a>.</p>
</footer>
</body>
</html>

1 comment on commit 159617b

@vercel
Copy link

@vercel vercel bot commented on 159617b Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.