@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agorapulse-ui-theme-22.0.6-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +624 -460
- package/assets/mobile_variables.css +624 -460
- package/assets/style/_button-mixins.scss +33 -92
- package/assets/style/_input.scss +4 -0
- package/assets/style/_link.scss +31 -35
- package/assets/style/_select.scss +67 -44
- package/assets/style/_table.scss +52 -20
- package/assets/style/_tooltip.scss +6 -7
- package/assets/style/components-custom-style/_input.scss +22 -28
- package/assets/style/components-custom-style/_ng-select.scss +15 -7
- package/assets/style/css-ui/_action-dropdown.scss +39 -27
- package/assets/style/css-ui/_badge.scss +2 -5
- package/assets/style/css-ui/_button.scss +141 -96
- package/assets/style/css-ui/_checkbox.scss +6 -11
- package/assets/style/css-ui/_counter.scss +7 -15
- package/assets/style/css-ui/_icon-button.scss +24 -68
- package/assets/style/css-ui/_infobox.scss +25 -68
- package/assets/style/css-ui/_input.scss +31 -38
- package/assets/style/css-ui/_label.scss +10 -8
- package/assets/style/css-ui/_link.scss +31 -36
- package/assets/style/css-ui/_list-panel.scss +33 -15
- package/assets/style/css-ui/_radio-card.scss +37 -31
- package/assets/style/css-ui/_radio.scss +17 -27
- package/assets/style/css-ui/_select.scss +53 -50
- package/assets/style/css-ui/_selection-dropdown.scss +25 -35
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +4 -14
- package/assets/style/css-ui/_status.scss +26 -29
- package/assets/style/css-ui/_table.scss +52 -20
- package/assets/style/css-ui/_tabs.scss +15 -31
- package/assets/style/css-ui/_tag.scss +25 -65
- package/assets/style/css-ui/_textarea.scss +25 -30
- package/assets/style/css-ui/_toggle.scss +12 -11
- package/assets/style/css-ui/_tooltip.scss +10 -7
- package/assets/style/css-ui/index.css +525 -638
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +1 -3
- package/src/desktop_config.js +1 -2
- package/src/mobile_config.js +1 -2
- package/src/tokens/components/button.json +225 -11
- package/src/tokens/components/icon-button.json +11 -1
- package/src/tokens/components/input.json +64 -145
- package/src/tokens/components/link.json +132 -0
- package/src/tokens/components/select.json +14 -14
- package/src/tokens/components/status.json +129 -0
- package/src/tokens/reference/v3.json +242 -0
- package/src/tokens/system/color-border.json +50 -43
- package/src/tokens/system/color-data.json +58 -0
- package/src/tokens/system/color-icon.json +62 -45
- package/src/tokens/system/color-link.json +15 -9
- package/src/tokens/system/color-surface.json +87 -77
- package/src/tokens/system/color-text.json +63 -52
- package/src/tokens/system/height.json +12 -3
- package/src/tokens/system/motion.json +10 -0
- package/src/tokens/system/radius.json +18 -2
- package/src/tokens/system/spacing.json +13 -13
- package/agorapulse-ui-theme-22.0.3-beta.1.tgz +0 -0
- package/src/formats.js +0 -36
- package/src/tokens/components/action-dropdown.json +0 -93
- package/src/tokens/components/close-button.json +0 -22
- package/src/tokens/components/infobox.json +0 -156
- package/src/tokens/components/radio.json +0 -11
|
@@ -105,7 +105,7 @@ form.submitted {
|
|
|
105
105
|
.ng-optgroup {
|
|
106
106
|
padding: vars.$padding-s vars.$padding-m;
|
|
107
107
|
span {
|
|
108
|
-
color:
|
|
108
|
+
color: var(--sys-color-text-interactive-default);
|
|
109
109
|
display: flex;
|
|
110
110
|
ap-symbol {
|
|
111
111
|
padding-right: vars.$padding-s;
|
|
@@ -133,11 +133,11 @@ form.submitted {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
&.ng-option-selected {
|
|
136
|
-
background-color:
|
|
136
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
137
137
|
span {
|
|
138
|
-
color:
|
|
138
|
+
color: var(--sys-color-text-interactive-active);
|
|
139
139
|
ap-symbol .svg {
|
|
140
|
-
fill:
|
|
140
|
+
fill: var(--sys-color-icon-interactive-active) !important;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
span.checkbox {
|
|
@@ -148,12 +148,20 @@ form.submitted {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
+
// The spec leaves text alone on hover; only the surface reacts, and it is
|
|
152
|
+
// neutral now rather than blue.
|
|
153
|
+
&.ng-option-marked:not(.ng-option-selected) {
|
|
154
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.ng-option-marked.ng-option-selected {
|
|
158
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
159
|
+
}
|
|
160
|
+
|
|
151
161
|
&.ng-option-marked {
|
|
152
|
-
background-color: map.get(vars.$colors-electric-blue, 10);
|
|
153
162
|
span {
|
|
154
|
-
color: map.get(vars.$colors-electric-blue, 100);
|
|
155
163
|
ap-symbol .svg {
|
|
156
|
-
fill:
|
|
164
|
+
fill: currentColor !important;
|
|
157
165
|
}
|
|
158
166
|
}
|
|
159
167
|
span.checkbox {
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
// Agorapulse Action Dropdown Styles
|
|
2
2
|
@use 'mixins' as m;
|
|
3
3
|
|
|
4
|
+
// The panel chrome — surface, radius, shadow — is shared with the filter, datepicker and
|
|
5
|
+
// selection dropdowns. Figma names the shadow `Shadow/Low (default)` but exposes it as an
|
|
6
|
+
// effect style, not a variable, so it stays a literal here and in the three other panels.
|
|
7
|
+
$panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15);
|
|
8
|
+
|
|
4
9
|
// Container
|
|
5
10
|
.ap-action-dropdown {
|
|
6
11
|
background-color: var(--sys-color-surface-default);
|
|
7
12
|
border-radius: var(--sys-radius-inner);
|
|
8
|
-
box-shadow:
|
|
9
|
-
padding: var(--
|
|
13
|
+
box-shadow: $panel-shadow;
|
|
14
|
+
padding: var(--ref-spacing-xxs) 0;
|
|
10
15
|
outline: none;
|
|
11
16
|
overflow: hidden;
|
|
12
17
|
z-index: 1000;
|
|
@@ -17,9 +22,7 @@
|
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
&:focus {
|
|
20
|
-
|
|
21
|
-
// rest of the DS now.
|
|
22
|
-
outline: 2px solid var(--ref-color-electric-blue-100);
|
|
25
|
+
outline: 2px solid var(--sys-color-border-interactive-active);
|
|
23
26
|
outline-offset: 2px;
|
|
24
27
|
}
|
|
25
28
|
}
|
|
@@ -30,14 +33,14 @@
|
|
|
30
33
|
align-items: center;
|
|
31
34
|
width: 100%;
|
|
32
35
|
height: 40px;
|
|
33
|
-
padding: var(--
|
|
36
|
+
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
34
37
|
border: none;
|
|
35
|
-
background:
|
|
38
|
+
background: var(--sys-color-surface-interactive-default);
|
|
36
39
|
color: var(--sys-color-text-interactive-default);
|
|
37
40
|
cursor: pointer;
|
|
38
|
-
font-family: var(--
|
|
39
|
-
font-size: var(--
|
|
40
|
-
line-height: var(--
|
|
41
|
+
font-family: var(--sys-text-style-body-font-family);
|
|
42
|
+
font-size: var(--sys-text-style-body-size);
|
|
43
|
+
line-height: var(--sys-text-style-body-line-height);
|
|
41
44
|
text-align: left;
|
|
42
45
|
box-sizing: border-box;
|
|
43
46
|
|
|
@@ -49,20 +52,22 @@
|
|
|
49
52
|
|
|
50
53
|
// Start icon = first child
|
|
51
54
|
&:first-child {
|
|
52
|
-
margin-right: var(--
|
|
55
|
+
margin-right: var(--sys-spacing-inline-icon-default);
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
// End icon = last child (but not the only child)
|
|
56
59
|
&:last-child:not(:first-child) {
|
|
57
|
-
margin-left: var(--
|
|
60
|
+
margin-left: var(--sys-spacing-inline-icon-default);
|
|
58
61
|
color: var(--sys-color-icon-subtle);
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
// The spec hovers rows on the neutral ramp, not blue
|
|
62
66
|
&:hover {
|
|
63
67
|
background-color: var(--sys-color-surface-interactive-hovered);
|
|
64
68
|
}
|
|
65
69
|
|
|
70
|
+
&:active:not(:disabled),
|
|
66
71
|
&:focus,
|
|
67
72
|
&.focused {
|
|
68
73
|
outline: none;
|
|
@@ -71,10 +76,18 @@
|
|
|
71
76
|
|
|
72
77
|
&:disabled {
|
|
73
78
|
cursor: not-allowed;
|
|
74
|
-
|
|
79
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
80
|
+
|
|
81
|
+
.ap-action-dropdown-item-description {
|
|
82
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
> i {
|
|
86
|
+
color: var(--sys-color-icon-interactive-disabled);
|
|
87
|
+
}
|
|
75
88
|
|
|
76
89
|
&:hover {
|
|
77
|
-
background-color:
|
|
90
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
78
91
|
}
|
|
79
92
|
}
|
|
80
93
|
|
|
@@ -86,22 +99,20 @@
|
|
|
86
99
|
|
|
87
100
|
// Red mode (destructive action)
|
|
88
101
|
&.red-mode {
|
|
89
|
-
|
|
90
|
-
// pressed surfaces keep their red tints: no frame covers them, and on a
|
|
91
|
-
// destructive row the red carries the meaning.
|
|
92
|
-
color: var(--sys-color-text-error);
|
|
102
|
+
color: var(--sys-color-text-interactive-error-default);
|
|
93
103
|
|
|
94
104
|
> i {
|
|
95
105
|
color: inherit;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
&:hover {
|
|
99
|
-
background-color: var(--
|
|
109
|
+
background-color: var(--sys-color-surface-interactive-error-hovered);
|
|
100
110
|
}
|
|
101
111
|
|
|
112
|
+
&:active:not(:disabled),
|
|
102
113
|
&:focus,
|
|
103
114
|
&.focused {
|
|
104
|
-
background-color: var(--
|
|
115
|
+
background-color: var(--sys-color-surface-interactive-error-clicked);
|
|
105
116
|
}
|
|
106
117
|
}
|
|
107
118
|
|
|
@@ -115,6 +126,7 @@
|
|
|
115
126
|
background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
|
|
116
127
|
}
|
|
117
128
|
|
|
129
|
+
&:active:not(:disabled),
|
|
118
130
|
&:focus,
|
|
119
131
|
&.focused {
|
|
120
132
|
background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
|
|
@@ -133,14 +145,14 @@
|
|
|
133
145
|
flex-direction: column;
|
|
134
146
|
flex: 1;
|
|
135
147
|
min-width: 0;
|
|
136
|
-
gap: var(--
|
|
148
|
+
gap: var(--sys-spacing-inline-icon-small);
|
|
137
149
|
}
|
|
138
150
|
|
|
139
151
|
// Label container
|
|
140
152
|
.ap-action-dropdown-item-label-container {
|
|
141
153
|
display: flex;
|
|
142
154
|
align-items: center;
|
|
143
|
-
gap: var(--
|
|
155
|
+
gap: var(--sys-spacing-inline-icon-default);
|
|
144
156
|
@include m.truncate;
|
|
145
157
|
}
|
|
146
158
|
|
|
@@ -149,20 +161,20 @@
|
|
|
149
161
|
@include m.truncate;
|
|
150
162
|
|
|
151
163
|
&.bold {
|
|
152
|
-
font-weight: var(--
|
|
164
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
153
165
|
}
|
|
154
166
|
}
|
|
155
167
|
|
|
156
168
|
// Description
|
|
157
169
|
.ap-action-dropdown-item-description {
|
|
158
|
-
color: var(--sys-color-text-secondary);
|
|
159
|
-
font-size: var(--
|
|
160
|
-
line-height: var(--
|
|
170
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
171
|
+
font-size: var(--sys-text-style-caption-size);
|
|
172
|
+
line-height: var(--sys-text-style-caption-line-height);
|
|
161
173
|
}
|
|
162
174
|
|
|
163
175
|
// Divider
|
|
164
176
|
.ap-action-dropdown-divider {
|
|
165
177
|
height: 1px;
|
|
166
178
|
background-color: var(--sys-color-border-default);
|
|
167
|
-
margin: var(--
|
|
179
|
+
margin: var(--ref-spacing-xxs) 0;
|
|
168
180
|
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
// Agorapulse Badge Styles
|
|
2
|
+
@use 'mixins' as m;
|
|
2
3
|
|
|
3
4
|
.ap-badge {
|
|
4
5
|
display: inline-flex;
|
|
5
6
|
align-items: center;
|
|
6
7
|
justify-content: center;
|
|
7
8
|
padding: 0 2px;
|
|
8
|
-
|
|
9
|
-
font-family: var(--sys-text-style-caption-bold-font-family);
|
|
10
|
-
font-size: var(--sys-text-style-caption-bold-size);
|
|
11
|
-
font-weight: var(--sys-text-style-caption-bold-weight);
|
|
12
|
-
line-height: var(--sys-text-style-caption-bold-line-height);
|
|
9
|
+
@include m.text-style('caption-bold');
|
|
13
10
|
height: var(--ref-font-line-height-xs);
|
|
14
11
|
max-height: var(--ref-font-line-height-xs);
|
|
15
12
|
border-radius: 2px;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
display: flex;
|
|
21
21
|
justify-content: center;
|
|
22
22
|
align-items: center;
|
|
23
|
-
gap: var(--comp-
|
|
23
|
+
gap: var(--comp-button-spacing);
|
|
24
24
|
font-size: var(--comp-button-text-size);
|
|
25
25
|
font-family: var(--comp-button-text-font-family);
|
|
26
26
|
line-height: var(--comp-button-text-line-height);
|
|
@@ -48,80 +48,106 @@
|
|
|
48
48
|
|
|
49
49
|
// Primary variants
|
|
50
50
|
&.primary {
|
|
51
|
-
color: var(--sys-color-text-on-color);
|
|
52
|
-
|
|
53
51
|
&.orange {
|
|
54
|
-
|
|
52
|
+
background-color: var(--comp-button-primary-orange-surface-default);
|
|
53
|
+
color: var(--comp-button-primary-orange-content);
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: var(--comp-button-primary-orange-surface-hovered);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:active:not(:disabled) {
|
|
60
|
+
background-color: var(--comp-button-primary-orange-surface-clicked);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:disabled,
|
|
64
|
+
&.loading {
|
|
65
|
+
background-color: var(--comp-button-primary-orange-surface-disabled);
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
&.blue {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
)
|
|
70
|
+
background-color: var(--comp-button-primary-blue-surface-default);
|
|
71
|
+
color: var(--comp-button-primary-blue-content);
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: var(--comp-button-primary-blue-surface-hovered);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:active:not(:disabled) {
|
|
78
|
+
background-color: var(--comp-button-primary-blue-surface-clicked);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:disabled,
|
|
82
|
+
&.loading {
|
|
83
|
+
background-color: var(--comp-button-primary-blue-surface-disabled);
|
|
84
|
+
}
|
|
66
85
|
}
|
|
67
86
|
}
|
|
68
87
|
|
|
69
88
|
// Secondary variants
|
|
70
89
|
&.secondary {
|
|
71
90
|
&.orange {
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
background-color: var(--comp-button-secondary-orange-surface-default);
|
|
92
|
+
color: var(--comp-button-secondary-orange-content);
|
|
74
93
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Ghost variants
|
|
81
|
-
&.ghost {
|
|
82
|
-
background: transparent;
|
|
94
|
+
&:hover {
|
|
95
|
+
background-color: var(--comp-button-secondary-orange-surface-hovered);
|
|
96
|
+
}
|
|
83
97
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
98
|
+
&:active:not(:disabled) {
|
|
99
|
+
background-color: var(--comp-button-secondary-orange-surface-clicked);
|
|
100
|
+
}
|
|
87
101
|
|
|
88
|
-
|
|
89
|
-
|
|
102
|
+
&:disabled,
|
|
103
|
+
&.loading {
|
|
104
|
+
background-color: var(--comp-button-secondary-orange-surface-disabled);
|
|
105
|
+
color: var(--comp-button-secondary-orange-content-disabled);
|
|
90
106
|
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.blue {
|
|
110
|
+
background-color: var(--comp-button-secondary-blue-surface-default);
|
|
111
|
+
color: var(--comp-button-secondary-blue-content);
|
|
91
112
|
|
|
92
113
|
&:hover {
|
|
93
|
-
background-color: var(--
|
|
114
|
+
background-color: var(--comp-button-secondary-blue-surface-hovered);
|
|
94
115
|
}
|
|
95
116
|
|
|
96
117
|
&:active:not(:disabled) {
|
|
97
|
-
background-color: var(--
|
|
118
|
+
background-color: var(--comp-button-secondary-blue-surface-clicked);
|
|
98
119
|
}
|
|
99
120
|
|
|
100
|
-
&:
|
|
101
|
-
|
|
121
|
+
&:disabled,
|
|
122
|
+
&.loading {
|
|
123
|
+
background-color: var(--comp-button-secondary-blue-surface-disabled);
|
|
124
|
+
color: var(--comp-button-secondary-blue-content-disabled);
|
|
102
125
|
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
103
128
|
|
|
104
|
-
|
|
105
|
-
|
|
129
|
+
// Ghost variants
|
|
130
|
+
&.ghost {
|
|
131
|
+
background: transparent;
|
|
106
132
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
}
|
|
133
|
+
&.grey {
|
|
134
|
+
color: var(--comp-button-ghost-grey-content);
|
|
111
135
|
|
|
112
|
-
|
|
113
|
-
color: var(--
|
|
136
|
+
&:hover {
|
|
137
|
+
background-color: var(--comp-button-ghost-grey-surface-hovered);
|
|
138
|
+
}
|
|
114
139
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
140
|
+
&:active:not(:disabled) {
|
|
141
|
+
background-color: var(--comp-button-ghost-grey-surface-clicked);
|
|
118
142
|
}
|
|
119
143
|
|
|
120
|
-
|
|
121
|
-
|
|
144
|
+
&:disabled,
|
|
145
|
+
&.loading {
|
|
146
|
+
color: var(--comp-button-ghost-grey-content-disabled);
|
|
122
147
|
}
|
|
123
148
|
}
|
|
124
149
|
|
|
150
|
+
// Not in the Figma spec — left on the V2 ramps until design rules on them.
|
|
125
151
|
&.blue {
|
|
126
152
|
@include btn.btn-ghost-color('electric-blue');
|
|
127
153
|
}
|
|
@@ -135,64 +161,66 @@
|
|
|
135
161
|
}
|
|
136
162
|
}
|
|
137
163
|
|
|
138
|
-
// Stroked variants
|
|
164
|
+
// Stroked variants — Figma calls these `tertiary`
|
|
139
165
|
&.stroked {
|
|
140
|
-
background: var(--
|
|
166
|
+
background: var(--comp-button-tertiary-filled-surface);
|
|
167
|
+
border: 1px solid;
|
|
141
168
|
|
|
142
169
|
&.grey {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// the shared mixin cannot express with a single shade — hence written out.
|
|
146
|
-
border: 1px solid var(--sys-color-border-interactive-default);
|
|
147
|
-
color: var(--ref-color-grey-80);
|
|
148
|
-
|
|
149
|
-
ap-symbol {
|
|
150
|
-
color: var(--ref-color-grey-80);
|
|
151
|
-
}
|
|
170
|
+
border-color: var(--comp-button-tertiary-grey-border-default);
|
|
171
|
+
color: var(--comp-button-tertiary-grey-content);
|
|
152
172
|
|
|
153
173
|
&:hover {
|
|
154
|
-
border-color: var(--
|
|
174
|
+
border-color: var(--comp-button-tertiary-grey-border-hovered);
|
|
155
175
|
}
|
|
156
176
|
|
|
157
177
|
&:active:not(:disabled) {
|
|
158
|
-
border-color: var(--
|
|
178
|
+
border-color: var(--comp-button-tertiary-grey-border-clicked);
|
|
159
179
|
}
|
|
160
180
|
|
|
161
|
-
&:
|
|
162
|
-
|
|
181
|
+
&:disabled,
|
|
182
|
+
&.loading {
|
|
183
|
+
border-color: var(--comp-button-tertiary-grey-border-disabled);
|
|
184
|
+
color: var(--comp-button-tertiary-grey-content-disabled);
|
|
163
185
|
}
|
|
186
|
+
}
|
|
164
187
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
188
|
+
&.blue {
|
|
189
|
+
border-color: var(--comp-button-tertiary-blue-border-default);
|
|
190
|
+
color: var(--comp-button-tertiary-blue-content);
|
|
168
191
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
192
|
+
&:hover {
|
|
193
|
+
border-color: var(--comp-button-tertiary-blue-border-hovered);
|
|
172
194
|
}
|
|
173
195
|
|
|
174
|
-
|
|
175
|
-
border-color: var(--
|
|
176
|
-
color: var(--ref-color-grey-40);
|
|
177
|
-
|
|
178
|
-
ap-symbol {
|
|
179
|
-
color: var(--ref-color-grey-40);
|
|
180
|
-
}
|
|
196
|
+
&:active:not(:disabled) {
|
|
197
|
+
border-color: var(--comp-button-tertiary-blue-border-clicked);
|
|
181
198
|
}
|
|
182
199
|
|
|
183
|
-
|
|
184
|
-
|
|
200
|
+
&:disabled,
|
|
201
|
+
&.loading {
|
|
202
|
+
border-color: var(--comp-button-tertiary-blue-border-disabled);
|
|
203
|
+
color: var(--comp-button-tertiary-blue-content-disabled);
|
|
185
204
|
}
|
|
186
205
|
}
|
|
187
206
|
|
|
188
|
-
&.blue {
|
|
189
|
-
border: 1px solid var(--ref-color-electric-blue-60);
|
|
190
|
-
@include btn.btn-stroked-color('electric-blue', $text-color-shade: 150, $focus-border-shade: 80, $disabled-shade: 40, $loading-border-shade: 40);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
207
|
&.red {
|
|
194
|
-
border:
|
|
195
|
-
|
|
208
|
+
border-color: var(--comp-button-tertiary-red-border-default);
|
|
209
|
+
color: var(--comp-button-tertiary-red-content);
|
|
210
|
+
|
|
211
|
+
&:hover {
|
|
212
|
+
border-color: var(--comp-button-tertiary-red-border-hovered);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:active:not(:disabled) {
|
|
216
|
+
border-color: var(--comp-button-tertiary-red-border-clicked);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:disabled,
|
|
220
|
+
&.loading {
|
|
221
|
+
border-color: var(--comp-button-tertiary-red-border-disabled);
|
|
222
|
+
color: var(--comp-button-tertiary-red-content-disabled);
|
|
223
|
+
}
|
|
196
224
|
}
|
|
197
225
|
}
|
|
198
226
|
|
|
@@ -250,50 +278,67 @@
|
|
|
250
278
|
}
|
|
251
279
|
}
|
|
252
280
|
|
|
253
|
-
// Locked variant
|
|
281
|
+
// Locked variant — Figma calls this `featurelock`. It specifies no disabled or loading state.
|
|
254
282
|
&.locked {
|
|
255
283
|
overflow: visible;
|
|
256
|
-
background-color: var(--
|
|
257
|
-
|
|
284
|
+
background-color: var(--comp-button-featurelock-surface-default);
|
|
285
|
+
border: 1px solid var(--comp-button-featurelock-border-default);
|
|
286
|
+
color: var(--comp-button-featurelock-content);
|
|
258
287
|
|
|
259
288
|
&:hover:not(:disabled):not(.loading) {
|
|
260
|
-
background-color: var(--
|
|
289
|
+
background-color: var(--comp-button-featurelock-surface-hovered);
|
|
290
|
+
border-color: var(--comp-button-featurelock-border-hovered);
|
|
261
291
|
}
|
|
262
292
|
|
|
263
293
|
&:active:not(:disabled):not(.loading) {
|
|
264
|
-
background-color: var(--
|
|
294
|
+
background-color: var(--comp-button-featurelock-surface-clicked);
|
|
295
|
+
border-color: var(--comp-button-featurelock-border-clicked);
|
|
265
296
|
}
|
|
266
297
|
}
|
|
267
298
|
|
|
268
|
-
// Loading bar colors per variant
|
|
299
|
+
// Loading bar colors per variant — the bar takes the variant's default surface or content
|
|
269
300
|
&.primary.orange .ap-loading-bar {
|
|
270
|
-
background-color: var(--
|
|
301
|
+
background-color: var(--comp-button-primary-orange-surface-default);
|
|
271
302
|
}
|
|
272
303
|
|
|
273
304
|
&.primary.blue .ap-loading-bar {
|
|
274
|
-
background-color: var(--
|
|
305
|
+
background-color: var(--comp-button-primary-blue-surface-default);
|
|
275
306
|
}
|
|
276
307
|
|
|
277
308
|
&.secondary.orange .ap-loading-bar {
|
|
278
|
-
background-color: var(--
|
|
309
|
+
background-color: var(--comp-button-secondary-orange-content);
|
|
279
310
|
}
|
|
280
311
|
|
|
281
312
|
&.secondary.blue .ap-loading-bar {
|
|
282
|
-
background-color: var(--
|
|
313
|
+
background-color: var(--comp-button-secondary-blue-content);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.ghost.grey .ap-loading-bar {
|
|
317
|
+
background-color: var(--comp-button-ghost-grey-content);
|
|
283
318
|
}
|
|
284
319
|
|
|
285
|
-
&.ghost.grey .ap-loading-bar,
|
|
286
320
|
&.stroked.grey .ap-loading-bar {
|
|
287
|
-
background-color: var(--
|
|
321
|
+
background-color: var(--comp-button-tertiary-grey-content);
|
|
288
322
|
}
|
|
289
323
|
|
|
290
|
-
&.ghost.blue .ap-loading-bar,
|
|
291
324
|
&.stroked.blue .ap-loading-bar {
|
|
292
|
-
background-color: var(--
|
|
325
|
+
background-color: var(--comp-button-tertiary-blue-content);
|
|
293
326
|
}
|
|
294
327
|
|
|
295
|
-
&.ghost.red .ap-loading-bar,
|
|
296
328
|
&.stroked.red .ap-loading-bar {
|
|
329
|
+
background-color: var(--comp-button-tertiary-red-content);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&.locked .ap-loading-bar {
|
|
333
|
+
background-color: var(--comp-button-featurelock-content);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// Not in the Figma spec — left on the V2 ramps until design rules on them.
|
|
337
|
+
&.ghost.blue .ap-loading-bar {
|
|
338
|
+
background-color: var(--ref-color-electric-blue-100);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
&.ghost.red .ap-loading-bar {
|
|
297
342
|
background-color: var(--ref-color-red-100);
|
|
298
343
|
}
|
|
299
344
|
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// No-label variant: larger hit area with background feedback.
|
|
21
|
-
//
|
|
22
|
-
// this variant entirely and the new token set has none of grey-05 / blue-10 /
|
|
23
|
-
// blue-20, so there is nothing to migrate it onto yet.
|
|
21
|
+
// Not in the spec — its surfaces stay on the V2 ramps until design draws it.
|
|
24
22
|
&:not(:has(> span:not(:empty))) {
|
|
25
23
|
padding: 10px;
|
|
26
24
|
border-radius: var(--ref-border-radius-md);
|
|
@@ -96,7 +94,7 @@
|
|
|
96
94
|
border-color: var(--sys-color-border-input-clicked);
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
// Checked state —
|
|
97
|
+
// Checked state — the spec draws no border, so the stroke matches the fill
|
|
100
98
|
&:has(input:checked) > i {
|
|
101
99
|
background: var(--sys-color-surface-input-active);
|
|
102
100
|
border-color: var(--sys-color-surface-input-active);
|
|
@@ -131,7 +129,7 @@
|
|
|
131
129
|
border-color: var(--sys-color-surface-input-active-disabled);
|
|
132
130
|
}
|
|
133
131
|
|
|
134
|
-
// Indeterminate state (class on container)
|
|
132
|
+
// Indeterminate state (class on container) — not in the spec, follows the checked treatment
|
|
135
133
|
&.indeterminate > i {
|
|
136
134
|
background: var(--sys-color-surface-input-active);
|
|
137
135
|
border-color: var(--sys-color-surface-input-active);
|
|
@@ -160,7 +158,7 @@
|
|
|
160
158
|
}
|
|
161
159
|
}
|
|
162
160
|
|
|
163
|
-
// Error state
|
|
161
|
+
// Error state — wins over the unchecked state colours above
|
|
164
162
|
&.error > i {
|
|
165
163
|
border-color: var(--sys-color-border-error);
|
|
166
164
|
}
|
|
@@ -169,10 +167,7 @@
|
|
|
169
167
|
> span {
|
|
170
168
|
display: flex;
|
|
171
169
|
align-items: center;
|
|
172
|
-
|
|
173
|
-
font-size: var(--sys-text-style-body-size);
|
|
174
|
-
font-weight: var(--sys-text-style-body-weight);
|
|
175
|
-
line-height: var(--sys-text-style-body-line-height);
|
|
170
|
+
@include m.text-style('body');
|
|
176
171
|
color: var(--sys-color-text-interactive-default);
|
|
177
172
|
user-select: none;
|
|
178
173
|
|
|
@@ -189,6 +184,6 @@
|
|
|
189
184
|
|
|
190
185
|
// Bold modifier
|
|
191
186
|
&.bold > span {
|
|
192
|
-
font-weight: var(--
|
|
187
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
193
188
|
}
|
|
194
189
|
}
|