Skip to content

Commit

Permalink
Merge branch 'master' into text-input-height-variations
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Jan 16, 2020
2 parents 023b69c + 5bb3f32 commit 673a8a7
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 3 deletions.
40 changes: 39 additions & 1 deletion packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
- [✅text-03 [variable]](#text-03-variable)
- [✅text-04 [variable]](#text-04-variable)
- [✅text-05 [variable]](#text-05-variable)
- [✅text-error [variable]](#text-error-variable)
- [✅icon-01 [variable]](#icon-01-variable)
- [✅icon-02 [variable]](#icon-02-variable)
- [✅icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -4104,6 +4105,7 @@ Define theme variables from a map of tokens
$text-03: map-get($theme, 'text-03') !global;
$text-04: map-get($theme, 'text-04') !global;
$text-05: map-get($theme, 'text-05') !global;
$text-error: map-get($theme, 'text-error') !global;
$icon-01: map-get($theme, 'icon-01') !global;
$icon-02: map-get($theme, 'icon-02') !global;
$icon-03: map-get($theme, 'icon-03') !global;
Expand Down Expand Up @@ -4277,6 +4279,10 @@ Define theme variables from a map of tokens
--#{$custom-property-prefix}-text-05,
map-get($theme, 'text-05')
) !global;
$text-error: var(
--#{$custom-property-prefix}-text-error,
map-get($theme, 'text-error')
) !global;
$icon-01: var(
--#{$custom-property-prefix}-icon-01,
map-get($theme, 'icon-01')
Expand Down Expand Up @@ -4670,6 +4676,10 @@ Define theme variables from a map of tokens
@include custom-property('text-05', map-get($theme, 'text-05'));
}

@if should-emit($theme, $carbon--theme, 'text-error', $emit-difference) {
@include custom-property('text-error', map-get($theme, 'text-error'));
}

@if should-emit($theme, $carbon--theme, 'icon-01', $emit-difference) {
@include custom-property('icon-01', map-get($theme, 'icon-01'));
}
Expand Down Expand Up @@ -5444,6 +5454,7 @@ Define theme variables from a map of tokens
- [text-03 [variable]](#text-03-variable)
- [text-04 [variable]](#text-04-variable)
- [text-05 [variable]](#text-05-variable)
- [text-error [variable]](#text-error-variable)
- [icon-01 [variable]](#icon-01-variable)
- [icon-02 [variable]](#icon-02-variable)
- [icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -5605,6 +5616,7 @@ $carbon--theme--g90: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ffb3b8,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand All @@ -5613,7 +5625,7 @@ $carbon--theme--g90: map-merge(
field-02: #525252,
inverse-01: #161616,
inverse-02: #f4f4f4,
support-01: #fa4d56,
support-01: #ff8389,
support-02: #42be65,
support-04: #4589ff,
inverse-support-01: #da1e28,
Expand Down Expand Up @@ -5676,6 +5688,7 @@ $carbon--theme--g100: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ff8389,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand Down Expand Up @@ -5749,6 +5762,7 @@ $carbon--theme--v9: map-merge(
text-02: #5a6872,
text-03: #cdd1d4,
text-05: #5a6872,
text-error: #e0182d,
icon-01: #3d70b2,
icon-02: #5a6872,
link-01: #3d70b2,
Expand Down Expand Up @@ -5826,6 +5840,7 @@ $carbon--theme: (
text-03: if(global-variable-exists('text-03'), $text-03, map-get($carbon--theme--white, 'text-03')),
text-04: if(global-variable-exists('text-04'), $text-04, map-get($carbon--theme--white, 'text-04')),
text-05: if(global-variable-exists('text-05'), $text-05, map-get($carbon--theme--white, 'text-05')),
text-error: if(global-variable-exists('text-error'), $text-error, map-get($carbon--theme--white, 'text-error')),
icon-01: if(global-variable-exists('icon-01'), $icon-01, map-get($carbon--theme--white, 'icon-01')),
icon-02: if(global-variable-exists('icon-02'), $icon-02, map-get($carbon--theme--white, 'icon-02')),
icon-03: if(global-variable-exists('icon-03'), $icon-03, map-get($carbon--theme--white, 'icon-03')),
Expand Down Expand Up @@ -6463,6 +6478,29 @@ $text-05: if(
- [search [mixin]](#search-mixin)
- [time-picker [mixin]](#time-picker-mixin)

### ✅text-error [variable]

<details>
<summary>Source code</summary>

```scss
$text-error: if(
global-variable-exists('carbon--theme') and map-has-key(
$carbon--theme,
'text-error'
),
map-get($carbon--theme, 'text-error'),
#da1e28
);
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `{undefined}`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅icon-01 [variable]

Primary icons
Expand Down
40 changes: 39 additions & 1 deletion packages/elements/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
- [✅text-03 [variable]](#text-03-variable)
- [✅text-04 [variable]](#text-04-variable)
- [✅text-05 [variable]](#text-05-variable)
- [✅text-error [variable]](#text-error-variable)
- [✅icon-01 [variable]](#icon-01-variable)
- [✅icon-02 [variable]](#icon-02-variable)
- [✅icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -3732,6 +3733,7 @@ Define theme variables from a map of tokens
$text-03: map-get($theme, 'text-03') !global;
$text-04: map-get($theme, 'text-04') !global;
$text-05: map-get($theme, 'text-05') !global;
$text-error: map-get($theme, 'text-error') !global;
$icon-01: map-get($theme, 'icon-01') !global;
$icon-02: map-get($theme, 'icon-02') !global;
$icon-03: map-get($theme, 'icon-03') !global;
Expand Down Expand Up @@ -3905,6 +3907,10 @@ Define theme variables from a map of tokens
--#{$custom-property-prefix}-text-05,
map-get($theme, 'text-05')
) !global;
$text-error: var(
--#{$custom-property-prefix}-text-error,
map-get($theme, 'text-error')
) !global;
$icon-01: var(
--#{$custom-property-prefix}-icon-01,
map-get($theme, 'icon-01')
Expand Down Expand Up @@ -4298,6 +4304,10 @@ Define theme variables from a map of tokens
@include custom-property('text-05', map-get($theme, 'text-05'));
}

@if should-emit($theme, $carbon--theme, 'text-error', $emit-difference) {
@include custom-property('text-error', map-get($theme, 'text-error'));
}

@if should-emit($theme, $carbon--theme, 'icon-01', $emit-difference) {
@include custom-property('icon-01', map-get($theme, 'icon-01'));
}
Expand Down Expand Up @@ -5072,6 +5082,7 @@ Define theme variables from a map of tokens
- [text-03 [variable]](#text-03-variable)
- [text-04 [variable]](#text-04-variable)
- [text-05 [variable]](#text-05-variable)
- [text-error [variable]](#text-error-variable)
- [icon-01 [variable]](#icon-01-variable)
- [icon-02 [variable]](#icon-02-variable)
- [icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -5233,6 +5244,7 @@ $carbon--theme--g90: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ffb3b8,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand All @@ -5241,7 +5253,7 @@ $carbon--theme--g90: map-merge(
field-02: #525252,
inverse-01: #161616,
inverse-02: #f4f4f4,
support-01: #fa4d56,
support-01: #ff8389,
support-02: #42be65,
support-04: #4589ff,
inverse-support-01: #da1e28,
Expand Down Expand Up @@ -5304,6 +5316,7 @@ $carbon--theme--g100: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ff8389,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand Down Expand Up @@ -5377,6 +5390,7 @@ $carbon--theme--v9: map-merge(
text-02: #5a6872,
text-03: #cdd1d4,
text-05: #5a6872,
text-error: #e0182d,
icon-01: #3d70b2,
icon-02: #5a6872,
link-01: #3d70b2,
Expand Down Expand Up @@ -5454,6 +5468,7 @@ $carbon--theme: (
text-03: if(global-variable-exists('text-03'), $text-03, map-get($carbon--theme--white, 'text-03')),
text-04: if(global-variable-exists('text-04'), $text-04, map-get($carbon--theme--white, 'text-04')),
text-05: if(global-variable-exists('text-05'), $text-05, map-get($carbon--theme--white, 'text-05')),
text-error: if(global-variable-exists('text-error'), $text-error, map-get($carbon--theme--white, 'text-error')),
icon-01: if(global-variable-exists('icon-01'), $icon-01, map-get($carbon--theme--white, 'icon-01')),
icon-02: if(global-variable-exists('icon-02'), $icon-02, map-get($carbon--theme--white, 'icon-02')),
icon-03: if(global-variable-exists('icon-03'), $icon-03, map-get($carbon--theme--white, 'icon-03')),
Expand Down Expand Up @@ -5947,6 +5962,29 @@ $text-05: if(

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `{undefined}`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅text-error [variable]

<details>
<summary>Source code</summary>

```scss
$text-error: if(
global-variable-exists('carbon--theme') and map-has-key(
$carbon--theme,
'text-error'
),
map-get($carbon--theme, 'text-error'),
#da1e28
);
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `{undefined}`
- **Used by**:
Expand Down
40 changes: 39 additions & 1 deletion packages/themes/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- [✅text-03 [variable]](#text-03-variable)
- [✅text-04 [variable]](#text-04-variable)
- [✅text-05 [variable]](#text-05-variable)
- [✅text-error [variable]](#text-error-variable)
- [✅icon-01 [variable]](#icon-01-variable)
- [✅icon-02 [variable]](#icon-02-variable)
- [✅icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -233,6 +234,7 @@ Define theme variables from a map of tokens
$text-03: map-get($theme, 'text-03') !global;
$text-04: map-get($theme, 'text-04') !global;
$text-05: map-get($theme, 'text-05') !global;
$text-error: map-get($theme, 'text-error') !global;
$icon-01: map-get($theme, 'icon-01') !global;
$icon-02: map-get($theme, 'icon-02') !global;
$icon-03: map-get($theme, 'icon-03') !global;
Expand Down Expand Up @@ -406,6 +408,10 @@ Define theme variables from a map of tokens
--#{$custom-property-prefix}-text-05,
map-get($theme, 'text-05')
) !global;
$text-error: var(
--#{$custom-property-prefix}-text-error,
map-get($theme, 'text-error')
) !global;
$icon-01: var(
--#{$custom-property-prefix}-icon-01,
map-get($theme, 'icon-01')
Expand Down Expand Up @@ -799,6 +805,10 @@ Define theme variables from a map of tokens
@include custom-property('text-05', map-get($theme, 'text-05'));
}

@if should-emit($theme, $carbon--theme, 'text-error', $emit-difference) {
@include custom-property('text-error', map-get($theme, 'text-error'));
}

@if should-emit($theme, $carbon--theme, 'icon-01', $emit-difference) {
@include custom-property('icon-01', map-get($theme, 'icon-01'));
}
Expand Down Expand Up @@ -1573,6 +1583,7 @@ Define theme variables from a map of tokens
- [text-03 [variable]](#text-03-variable)
- [text-04 [variable]](#text-04-variable)
- [text-05 [variable]](#text-05-variable)
- [text-error [variable]](#text-error-variable)
- [icon-01 [variable]](#icon-01-variable)
- [icon-02 [variable]](#icon-02-variable)
- [icon-03 [variable]](#icon-03-variable)
Expand Down Expand Up @@ -1734,6 +1745,7 @@ $carbon--theme--g90: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ffb3b8,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand All @@ -1742,7 +1754,7 @@ $carbon--theme--g90: map-merge(
field-02: #525252,
inverse-01: #161616,
inverse-02: #f4f4f4,
support-01: #fa4d56,
support-01: #ff8389,
support-02: #42be65,
support-04: #4589ff,
inverse-support-01: #da1e28,
Expand Down Expand Up @@ -1805,6 +1817,7 @@ $carbon--theme--g100: map-merge(
text-02: #c6c6c6,
text-03: #6f6f6f,
text-05: #8d8d8d,
text-error: #ff8389,
icon-01: #f4f4f4,
icon-02: #c6c6c6,
link-01: #78a9ff,
Expand Down Expand Up @@ -1878,6 +1891,7 @@ $carbon--theme--v9: map-merge(
text-02: #5a6872,
text-03: #cdd1d4,
text-05: #5a6872,
text-error: #e0182d,
icon-01: #3d70b2,
icon-02: #5a6872,
link-01: #3d70b2,
Expand Down Expand Up @@ -1955,6 +1969,7 @@ $carbon--theme: (
text-03: if(global-variable-exists('text-03'), $text-03, map-get($carbon--theme--white, 'text-03')),
text-04: if(global-variable-exists('text-04'), $text-04, map-get($carbon--theme--white, 'text-04')),
text-05: if(global-variable-exists('text-05'), $text-05, map-get($carbon--theme--white, 'text-05')),
text-error: if(global-variable-exists('text-error'), $text-error, map-get($carbon--theme--white, 'text-error')),
icon-01: if(global-variable-exists('icon-01'), $icon-01, map-get($carbon--theme--white, 'icon-01')),
icon-02: if(global-variable-exists('icon-02'), $icon-02, map-get($carbon--theme--white, 'icon-02')),
icon-03: if(global-variable-exists('icon-03'), $icon-03, map-get($carbon--theme--white, 'icon-03')),
Expand Down Expand Up @@ -2448,6 +2463,29 @@ $text-05: if(

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `{undefined}`
- **Used by**:
- [carbon--theme [mixin]](#carbon--theme-mixin)

### ✅text-error [variable]

<details>
<summary>Source code</summary>

```scss
$text-error: if(
global-variable-exists('carbon--theme') and map-has-key(
$carbon--theme,
'text-error'
),
map-get($carbon--theme, 'text-error'),
#da1e28
);
```

</details>

- **Group**: [@carbon/themes](#carbonthemes)
- **Type**: `{undefined}`
- **Used by**:
Expand Down

0 comments on commit 673a8a7

Please sign in to comment.