Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 9447273

Browse files
author
Callin Mullaney
committed
feat: include clr function so it can properly render declarations
1 parent 5e71168 commit 9447273

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+126
-63
lines changed

assets/icons/angle-down.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/chevron-down.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/circle-info.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/facebook.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/instagram.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/linkedin.svg

Lines changed: 5 additions & 1 deletion
Loading

assets/icons/menu-close.svg

Lines changed: 5 additions & 1 deletion
Loading

assets/icons/menu.svg

Lines changed: 3 additions & 1 deletion
Loading

assets/icons/triangle-exclamation.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/twitter.svg

Lines changed: 4 additions & 1 deletion
Loading

assets/icons/xmark.svg

Lines changed: 4 additions & 1 deletion
Loading

components/01-atoms/buttons/_buttons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "sass:map";
22
@use "../../00-base/00-defaults/01-variables" as *;
3+
@use "../../00-base/01-colors/colors-used" as *;
34

45
// Sass map to define colors. Each set should have a "Dark" variation when required.
56
// e.g. `default` and `default-dark`. Or `purple` and `purple-dark`.

components/01-atoms/forms/select/_select.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../../00-base/00-defaults/01-variables" as *;
2+
@use "../../../00-base/01-colors/colors-used" as *;
23

34
.form-item__dropdown {
45
border: 1px solid clr(accent);

components/01-atoms/forms/textfields/_textfields.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "../../../00-base/00-defaults/01-variables" as *;
22
@use "../../../00-base/00-defaults/03-mixins" as *;
3+
@use "../../../00-base/01-colors/colors-used" as *;
34

45
.form-item {
56
color: clr(text);

components/01-atoms/images/icons/_icons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../../00-base/00-defaults/01-variables" as *;
2+
@use "../../../00-base/01-colors/colors-used" as *;
23

34
// Storybook styling
45
.icons-demo {

components/01-atoms/links/link/_link.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../../00-base/01-colors/colors-used" as *;
2+
13
@mixin link {
24
color: clr(accent);
35

components/01-atoms/lists/_list.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "../../00-base/00-defaults/01-variables" as *;
22
@use "../../00-base/00-defaults/03-mixins" as *;
3+
@use "../../00-base/01-colors/colors-used" as *;
34

45
ul {
56
@include list-reset;

components/01-atoms/tables/_tables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../00-base/00-defaults/01-variables" as *;
2+
@use "../../00-base/01-colors/colors-used" as *;
23

34
$table-border-width: 1px;
45

components/01-atoms/text/headings/_headings.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../../00-base/00-defaults/01-variables" as *;
2+
@use "../../../00-base/01-colors/colors-used" as *;
23

34
/*
45
* Generic header styles:

components/01-atoms/text/text/_text.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../../00-base/00-defaults/01-variables" as *;
2+
@use "../../../00-base/01-colors/colors-used" as *;
23

34
/* Create a mixin for paragraph styles that can be implemented
45
* in components with other classnames.

components/01-atoms/tooltip/_tooltip.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../00-base/01-colors/colors-used" as *;
2+
13
// Variables
24
$tooltip-icon-size: 1.25rem;
35
$tooltip-content-maxwidth: 18.5rem;

components/02-molecules/accordion/_accordion.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "../../00-base/00-defaults/01-variables" as *;
22
@use "../../00-base/00-defaults/03-mixins" as *;
3+
@use "../../00-base/01-colors/colors-used" as *;
34

45
// The accordion group.
56
.accordion {

components/02-molecules/alert/alert.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../00-base/00-defaults/01-variables" as *;
2+
@use "../../00-base/01-colors/colors-used" as *;
23

34
.alert {
45
background-color: clr(warning);

components/02-molecules/alert/alert.stories.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import buttonTwig from '../../01-atoms/buttons/button.twig';
55
import alertData from './alert.yml';
66

77
import './alert';
8-
8+
console.log(alertData);
99
/**
1010
* Storybook Definition.
1111
*/
@@ -18,17 +18,17 @@ export default {
1818
heading: {
1919
name: 'Alert Heading',
2020
type: 'string',
21-
defaultValue: alertData.alert_heading,
21+
defaultValue: alertData.alert__heading,
2222
},
2323
content: {
2424
name: 'Alert Content',
2525
type: 'string',
26-
defaultValue: alertData.alert_content,
26+
defaultValue: alertData.alert__content,
2727
},
2828
linkContent: {
2929
name: 'Alert Link Text',
3030
type: 'string',
31-
defaultValue: alertData.alert_link__content,
31+
defaultValue: alertData.alert__link__content,
3232
},
3333
},
3434
};
@@ -55,10 +55,10 @@ export const Alert = ({ type, heading, content, linkContent }) => `
5555
</script>
5656
${alertTwig({
5757
alert_type: type,
58-
alert_heading: heading,
59-
alert_content: content,
60-
alert_link__content: linkContent,
61-
alert_link__url: alertData.alert_link__url,
58+
alert__heading: heading,
59+
alert__content: content,
60+
alert__link__content: linkContent,
61+
alert__link__url: alertData.alert__link__url,
6262
alert_id: '123',
6363
})}<br />
6464
${paragraphTwig({

0 commit comments

Comments
 (0)