Skip to content

Commit 31a386a

Browse files
committed
Fix build
1 parent f10f336 commit 31a386a

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

packages/styles/src/components/header/_mixins.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@use '../../functions/tokens';
22
@use '../../mixins/button';
33
@use '../../mixins/media';
4+
@use '../../tokens/components';
45

56
/**
67
selects all slotted controls
@@ -46,7 +47,7 @@
4647
}
4748

4849
@include active-state {
49-
box-shadow: tokens.get('button-elevation');
50+
box-shadow: tokens.get('button-elevation', components.$post-button);
5051

5152
@include button.button-variant-def('enabled', 'primary');
5253

packages/styles/src/mixins/_button.scss

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
@use '../functions/tokens';
1111
@use '../tokens/components';
1212

13-
tokens.$default-map: components.$post-button;
14-
1513
@mixin reset-button {
1614
padding: 0;
1715
overflow: visible;
@@ -40,13 +38,13 @@ tokens.$default-map: components.$post-button;
4038
max-width: 100%;
4139
overflow: hidden;
4240
transition: button.$btn-transition;
43-
border-width: tokens.get('button-border-width');
41+
border-width: tokens.get('button-border-width', components.$post-button);
4442
border-style: solid;
45-
border-radius: tokens.get('button-border-radius-round');
43+
border-radius: tokens.get('button-border-radius-round', components.$post-button);
4644
background-color: transparent;
4745
box-shadow: none;
4846
font-family: inherit;
49-
font-weight: tokens.get('button-label-font-weight');
47+
font-weight: tokens.get('button-label-font-weight', components.$post-button);
5048
text-decoration: none;
5149
white-space: nowrap; // Long content should never break in buttons
5250

@@ -55,7 +53,7 @@ tokens.$default-map: components.$post-button;
5553
}
5654

5755
&:disabled {
58-
border-style: tokens.get('button-border-style-disabled');
56+
border-style: tokens.get('button-border-style-disabled', components.$post-button);
5957
}
6058

6159
@include utilities.focus-style;
@@ -95,9 +93,9 @@ tokens.$default-map: components.$post-button;
9593
}
9694

9795
@mixin button-variant-def($type, $color) {
98-
border-color: tokens.get('button-#{$color}-#{$type}-stroke');
99-
background-color: tokens.get('button-#{$color}-#{$type}-bg');
100-
color: tokens.get('button-#{$color}-#{$type}-fg');
96+
border-color: tokens.get('button-#{$color}-#{$type}-stroke', components.$post-button);
97+
background-color: tokens.get('button-#{$color}-#{$type}-bg', components.$post-button);
98+
color: tokens.get('button-#{$color}-#{$type}-fg', components.$post-button);
10199
}
102100

103101
@mixin button-color-variant($name, $color) {

0 commit comments

Comments
 (0)