@agorapulse/ui-theme 22.0.1 → 22.0.2-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.2-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +457 -538
- package/assets/mobile_variables.css +457 -538
- package/assets/style/_button-mixins.scss +92 -33
- package/assets/style/_link.scss +35 -31
- package/assets/style/_select.scss +70 -69
- package/assets/style/_tooltip.scss +21 -21
- package/assets/style/components-custom-style/_input.scss +28 -18
- package/assets/style/css-ui/_action-dropdown.scss +21 -16
- package/assets/style/css-ui/_badge.scss +12 -11
- package/assets/style/css-ui/_button.scss +95 -17
- package/assets/style/css-ui/_checkbox.scss +35 -32
- package/assets/style/css-ui/_counter.scss +30 -29
- package/assets/style/css-ui/_icon-button.scss +62 -16
- package/assets/style/css-ui/_input.scss +39 -27
- package/assets/style/css-ui/_label.scss +14 -17
- package/assets/style/css-ui/_link.scss +36 -31
- package/assets/style/css-ui/_radio-card.scss +26 -18
- package/assets/style/css-ui/_radio.scss +37 -23
- package/assets/style/css-ui/_select.scss +84 -71
- package/assets/style/css-ui/_selection-dropdown.scss +57 -20
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +14 -4
- package/assets/style/css-ui/_status.scss +29 -26
- package/assets/style/css-ui/_tabs.scss +64 -56
- package/assets/style/css-ui/_tag.scss +43 -45
- package/assets/style/css-ui/_textarea.scss +30 -24
- package/assets/style/css-ui/_toggle.scss +30 -21
- package/assets/style/css-ui/_tooltip.scss +16 -17
- package/assets/style/css-ui/index.css +620 -543
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +3 -1
- package/src/desktop_config.js +2 -1
- package/src/formats.js +36 -0
- package/src/mobile_config.js +2 -1
- package/src/tokens/components/button.json +1 -1
- package/src/tokens/components/icon-button.json +1 -1
- package/src/tokens/reference/animation.json +5 -0
- package/src/tokens/system/color-border.json +78 -0
- package/src/tokens/system/color-icon.json +78 -0
- package/src/tokens/system/color-link.json +23 -0
- package/src/tokens/system/color-surface.json +120 -0
- package/src/tokens/system/color-text.json +78 -0
- package/src/tokens/system/height.json +15 -0
- package/src/tokens/system/motion.json +12 -0
- package/src/tokens/system/radius.json +12 -0
- package/src/tokens/system/spacing.json +25 -0
- package/agorapulse-ui-theme-22.0.1.tgz +0 -0
- package/src/tokens/components/badge.json +0 -53
- package/src/tokens/components/counter.json +0 -108
- package/src/tokens/components/label.json +0 -56
- package/src/tokens/components/link.json +0 -127
- package/src/tokens/components/status-card.json +0 -187
- package/src/tokens/components/status.json +0 -129
- package/src/tokens/components/tabs.json +0 -136
- package/src/tokens/components/tag.json +0 -194
- package/src/tokens/components/tooltip.json +0 -36
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
width: 370px;
|
|
8
8
|
max-height: 400px;
|
|
9
|
-
background: var(--
|
|
10
|
-
border-radius: var(--sys-
|
|
9
|
+
background: var(--sys-color-surface-default);
|
|
10
|
+
border-radius: var(--sys-radius-inner);
|
|
11
11
|
box-shadow: var(--comp-action-dropdown-box-shadow);
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
overflow: hidden;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
font-size: var(--ref-font-size-md);
|
|
27
27
|
font-weight: var(--ref-font-weight-bold);
|
|
28
28
|
line-height: var(--sys-text-style-h3-line-height);
|
|
29
|
-
color: var(--
|
|
29
|
+
color: var(--sys-color-text-default);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
gap: var(--ref-spacing-xxs);
|
|
38
38
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
39
|
-
border-bottom: 1px solid var(--
|
|
39
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
40
40
|
|
|
41
41
|
> i {
|
|
42
42
|
@include m.fixed-size(16px);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
font-family: var(--ref-font-family);
|
|
52
52
|
font-size: var(--sys-text-style-body-size);
|
|
53
53
|
line-height: var(--sys-text-style-body-line-height);
|
|
54
|
-
color: var(--
|
|
54
|
+
color: var(--sys-color-text-default);
|
|
55
55
|
background: transparent;
|
|
56
56
|
|
|
57
57
|
&::placeholder {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
// Selected items section (pinned at top)
|
|
72
72
|
.ap-selection-dropdown-selected {
|
|
73
73
|
margin-bottom: var(--ref-spacing-xxs);
|
|
74
|
-
border-bottom: 1px solid var(--
|
|
74
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
75
75
|
padding-bottom: var(--ref-spacing-xxs);
|
|
76
76
|
|
|
77
77
|
.ap-selection-dropdown-item > span {
|
|
@@ -93,17 +93,19 @@
|
|
|
93
93
|
font-family: var(--ref-font-family);
|
|
94
94
|
font-size: var(--sys-text-style-body-size);
|
|
95
95
|
line-height: var(--sys-text-style-body-line-height);
|
|
96
|
-
color: var(--
|
|
96
|
+
color: var(--sys-color-text-interactive-default);
|
|
97
97
|
text-align: left;
|
|
98
98
|
box-sizing: border-box;
|
|
99
99
|
transition: background-color 0.1s;
|
|
100
100
|
|
|
101
|
+
// Neutral hover and pressed move off the blue tints onto the grey ramp
|
|
102
|
+
// (V2 Style Guide - Tokens, node 1204:10802); the blues now mean "selected".
|
|
101
103
|
&:hover:not(:disabled):not(.locked) {
|
|
102
|
-
background: var(--
|
|
104
|
+
background: var(--sys-color-surface-interactive-hovered);
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
&:active:not(:disabled):not(.locked) {
|
|
106
|
-
background: var(--
|
|
108
|
+
background: var(--sys-color-surface-interactive-clicked);
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
&:focus-visible {
|
|
@@ -111,19 +113,52 @@
|
|
|
111
113
|
outline-offset: -2px;
|
|
112
114
|
}
|
|
113
115
|
|
|
116
|
+
// Selected row — absent from this layer before, so the whole ramp is new here.
|
|
117
|
+
&.selected {
|
|
118
|
+
background: var(--sys-color-surface-interactive-active);
|
|
119
|
+
color: var(--sys-color-text-interactive-active);
|
|
120
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
121
|
+
|
|
122
|
+
> i.ap-icon-check {
|
|
123
|
+
margin-left: auto;
|
|
124
|
+
color: var(--sys-color-icon-interactive-active);
|
|
125
|
+
@include m.fixed-size(16px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:hover:not(:disabled) {
|
|
129
|
+
background: var(--sys-color-surface-interactive-active-hovered);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:active:not(:disabled) {
|
|
133
|
+
background: var(--sys-color-surface-interactive-active-clicked);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:disabled {
|
|
137
|
+
color: var(--sys-color-text-interactive-active-disabled);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
114
141
|
&:disabled {
|
|
115
142
|
pointer-events: none;
|
|
116
|
-
color: var(--
|
|
143
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
117
144
|
}
|
|
118
145
|
|
|
119
|
-
// Locked item
|
|
146
|
+
// Locked item — the design gives it purple hover and pressed surfaces.
|
|
120
147
|
&.locked {
|
|
121
148
|
cursor: default;
|
|
122
|
-
color: var(--
|
|
149
|
+
color: var(--sys-color-text-interactive-default);
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
background: var(--sys-color-surface-interactive-featurelock-active-hovered);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:active {
|
|
156
|
+
background: var(--sys-color-surface-interactive-featurelock-active-clicked);
|
|
157
|
+
}
|
|
123
158
|
|
|
124
159
|
> i.ap-icon-feature-lock {
|
|
125
160
|
margin-left: auto;
|
|
126
|
-
color: var(--
|
|
161
|
+
color: var(--sys-color-icon-featurelock);
|
|
127
162
|
@include m.fixed-size(16px);
|
|
128
163
|
}
|
|
129
164
|
}
|
|
@@ -153,12 +188,14 @@
|
|
|
153
188
|
align-items: center;
|
|
154
189
|
gap: var(--ref-spacing-xs);
|
|
155
190
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
156
|
-
border-top: 1px solid var(--
|
|
157
|
-
background: var(--
|
|
191
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
192
|
+
background: var(--sys-color-surface-secondary);
|
|
158
193
|
font-family: var(--ref-font-family);
|
|
159
|
-
|
|
160
|
-
font-
|
|
161
|
-
|
|
194
|
+
// `Caption - Bold` in the design: 12/16, not the 14/18 body the rows use.
|
|
195
|
+
font-size: var(--sys-text-style-caption-bold-size);
|
|
196
|
+
line-height: var(--sys-text-style-caption-bold-line-height);
|
|
197
|
+
font-weight: var(--sys-text-style-caption-bold-weight);
|
|
198
|
+
color: var(--sys-color-text-default);
|
|
162
199
|
}
|
|
163
200
|
|
|
164
201
|
// Empty state
|
|
@@ -167,7 +204,7 @@
|
|
|
167
204
|
font-family: var(--ref-font-family);
|
|
168
205
|
font-size: var(--ref-font-size-sm);
|
|
169
206
|
line-height: var(--sys-text-style-body-line-height);
|
|
170
|
-
color: var(--
|
|
207
|
+
color: var(--sys-color-text-secondary);
|
|
171
208
|
font-style: italic;
|
|
172
209
|
}
|
|
173
210
|
|
|
@@ -178,6 +215,6 @@
|
|
|
178
215
|
justify-content: flex-start;
|
|
179
216
|
height: 40px;
|
|
180
217
|
padding: var(--ref-spacing-xs) var(--ref-spacing-sm);
|
|
181
|
-
border-top: 1px solid var(--
|
|
218
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
182
219
|
flex-shrink: 0;
|
|
183
220
|
}
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
width: max-content;
|
|
141
141
|
font-family: var(--comp-snackbar-text-style-font-family);
|
|
142
142
|
font-size: var(--comp-snackbar-text-style-size);
|
|
143
|
-
font-weight: var(--
|
|
143
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
144
144
|
line-height: var(--comp-snackbar-text-style-line-height);
|
|
145
|
-
color: var(--
|
|
145
|
+
color: var(--sys-color-link-default);
|
|
146
146
|
text-decoration: none;
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
|
|
@@ -59,16 +59,26 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// Primary color variants
|
|
62
|
+
// Primary color variants. The split button is a primary button with a dropdown
|
|
63
|
+
// attached, so it follows the `button/primary/*` spec rather than defining its own
|
|
64
|
+
// shades — Figma's "Component by component" frame has no split-button node.
|
|
65
|
+
// `$focus-shade` stays unset: nothing in the design covers focus here, so the
|
|
66
|
+
// existing focus ring below is kept.
|
|
63
67
|
&.primary > button {
|
|
64
|
-
color: var(--
|
|
68
|
+
color: var(--sys-color-text-on-color);
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
&.primary.orange > button {
|
|
68
|
-
@include btn.btn-primary-color('orange');
|
|
72
|
+
@include btn.btn-primary-color('orange', $loading-shade: 20);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
&.primary.blue > button {
|
|
72
|
-
@include btn.btn-primary-color(
|
|
76
|
+
@include btn.btn-primary-color(
|
|
77
|
+
'electric-blue',
|
|
78
|
+
$default-shade: 150,
|
|
79
|
+
$hover-shade: 100,
|
|
80
|
+
$clicked-shade: 80,
|
|
81
|
+
$loading-shade: 20
|
|
82
|
+
);
|
|
73
83
|
}
|
|
74
84
|
}
|
|
@@ -7,15 +7,13 @@
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: center;
|
|
10
|
-
padding: 0 var(--
|
|
11
|
-
gap: var(--
|
|
10
|
+
padding: 0 var(--sys-spacing-container-sm);
|
|
11
|
+
gap: var(--sys-spacing-inline-icon-small);
|
|
12
12
|
width: fit-content;
|
|
13
|
-
height: var(--
|
|
14
|
-
border-radius: var(--
|
|
15
|
-
color: var(--
|
|
16
|
-
|
|
17
|
-
font-size: var(--comp-status-font-size);
|
|
18
|
-
line-height: var(--comp-status-line-height);
|
|
13
|
+
height: var(--sys-height-chip);
|
|
14
|
+
border-radius: var(--sys-height-chip);
|
|
15
|
+
color: var(--sys-color-text-default);
|
|
16
|
+
@include m.text-style('caption');
|
|
19
17
|
box-sizing: border-box;
|
|
20
18
|
white-space: nowrap;
|
|
21
19
|
|
|
@@ -33,51 +31,56 @@
|
|
|
33
31
|
display: none;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
// Variants are named by meaning, not by hue — surface and dot both come from the
|
|
35
|
+
// semantic system tokens (V2 Style Guide - Tokens, node 1178:11133).
|
|
36
|
+
&.success {
|
|
37
|
+
background-color: var(--sys-color-surface-success);
|
|
38
38
|
|
|
39
39
|
&::before {
|
|
40
|
-
background-color: var(--
|
|
40
|
+
background-color: var(--sys-color-icon-success);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
&.
|
|
45
|
-
background-color: var(--
|
|
44
|
+
&.error {
|
|
45
|
+
background-color: var(--sys-color-surface-error);
|
|
46
46
|
|
|
47
47
|
&::before {
|
|
48
|
-
background-color: var(--
|
|
48
|
+
background-color: var(--sys-color-icon-error);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
&.
|
|
53
|
-
background-color: var(--
|
|
52
|
+
&.warning {
|
|
53
|
+
background-color: var(--sys-color-surface-warning);
|
|
54
54
|
|
|
55
55
|
&::before {
|
|
56
|
-
background-color: var(--
|
|
56
|
+
background-color: var(--sys-color-icon-warning);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
&.
|
|
61
|
-
background-color: var(--
|
|
60
|
+
&.information {
|
|
61
|
+
background-color: var(--sys-color-surface-information);
|
|
62
62
|
|
|
63
63
|
&::before {
|
|
64
|
-
background-color: var(--
|
|
64
|
+
background-color: var(--sys-color-icon-information);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&.
|
|
69
|
-
background-color: var(--
|
|
68
|
+
&.default {
|
|
69
|
+
background-color: var(--sys-color-surface-category-grey);
|
|
70
70
|
|
|
71
71
|
&::before {
|
|
72
|
-
background-color: var(--
|
|
72
|
+
background-color: var(--sys-color-icon-default);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// DEPRECATED — dropped from the design (node 1178:11133 shows 5 variants, not 6).
|
|
77
|
+
// No semantic token covers it, so it stays on the raw brand-orange refs.
|
|
78
|
+
// Kept only so external consumers keep working; do not use in new code.
|
|
79
|
+
&.orange {
|
|
80
|
+
background-color: var(--ref-color-orange-10);
|
|
78
81
|
|
|
79
82
|
&::before {
|
|
80
|
-
background-color: var(--
|
|
83
|
+
background-color: var(--ref-color-orange-100);
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// Agorapulse Tabs Styles
|
|
2
|
+
//
|
|
3
|
+
// Colours come from the semantic `interactive/*` state matrix
|
|
4
|
+
// (V2 Style Guide - Tokens, node 1178:11217). Hover and pressed are expressed as a
|
|
5
|
+
// bottom border, not a tinted background — the design binds no surface for them.
|
|
2
6
|
|
|
3
7
|
.ap-tabs {
|
|
4
8
|
display: flex;
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
.ap-tabs-nav {
|
|
23
27
|
display: flex;
|
|
24
28
|
align-items: center;
|
|
25
|
-
border-bottom: 1px solid var(--
|
|
29
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
26
30
|
position: relative;
|
|
27
31
|
|
|
28
32
|
// Scrollable tabs
|
|
@@ -42,31 +46,49 @@
|
|
|
42
46
|
display: flex;
|
|
43
47
|
align-items: center;
|
|
44
48
|
justify-content: center;
|
|
45
|
-
gap: var(--
|
|
49
|
+
gap: var(--sys-spacing-container-sm);
|
|
46
50
|
background: transparent;
|
|
47
51
|
border: none;
|
|
48
52
|
cursor: pointer;
|
|
49
|
-
font-family: var(--
|
|
53
|
+
font-family: var(--sys-text-style-body-font-family);
|
|
50
54
|
text-align: center;
|
|
51
55
|
position: relative;
|
|
52
56
|
white-space: nowrap;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
// No token covers 48px: the sys height scale stops at `control` (36px).
|
|
58
|
+
min-height: 48px;
|
|
59
|
+
padding: var(--sys-spacing-container-md) var(--sys-spacing-container-lg);
|
|
60
|
+
font-size: var(--sys-text-style-body-size);
|
|
61
|
+
line-height: var(--sys-text-style-body-line-height);
|
|
62
|
+
color: var(--sys-color-text-interactive-default);
|
|
63
|
+
font-weight: var(--sys-text-style-body-weight);
|
|
59
64
|
|
|
60
65
|
// Icon — implicit > i
|
|
61
66
|
> i {
|
|
62
67
|
width: 16px;
|
|
63
68
|
height: 16px;
|
|
64
69
|
flex-shrink: 0;
|
|
70
|
+
color: var(--sys-color-icon-interactive-default);
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
//
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
// Shared bottom indicator: 2px for hover/pressed, 4px when active.
|
|
74
|
+
&::after {
|
|
75
|
+
content: '';
|
|
76
|
+
position: absolute;
|
|
77
|
+
bottom: -1px;
|
|
78
|
+
left: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
height: 2px;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Hover state — a border, no background
|
|
85
|
+
&:hover:not(:disabled):not(.active)::after {
|
|
86
|
+
background-color: var(--sys-color-border-interactive-hovered);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Pressed state — a border, no background
|
|
90
|
+
&:active:not(:disabled):not(.active)::after {
|
|
91
|
+
background-color: var(--sys-color-border-interactive-clicked);
|
|
70
92
|
}
|
|
71
93
|
|
|
72
94
|
// Focus state
|
|
@@ -74,82 +96,67 @@
|
|
|
74
96
|
outline: none;
|
|
75
97
|
}
|
|
76
98
|
|
|
99
|
+
// The design specifies no focus treatment for tabs, so the ring is kept as it
|
|
100
|
+
// was — minus the tinted background, whose colour the design dropped.
|
|
77
101
|
&:focus-visible:not(.active) {
|
|
78
102
|
outline: none;
|
|
79
|
-
box-shadow: inset 0 0 0 2px var(--
|
|
80
|
-
border-radius: var(--
|
|
81
|
-
background-color: var(--comp-tabs-tab-focus-background-color);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Active/pressed state
|
|
85
|
-
&:active:not(:disabled):not(.active) {
|
|
86
|
-
background-color: var(--comp-tabs-tab-active-background-color);
|
|
103
|
+
box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
|
|
104
|
+
border-radius: var(--sys-radius-inner);
|
|
87
105
|
}
|
|
88
106
|
|
|
89
107
|
// Disabled state
|
|
90
108
|
&:disabled,
|
|
91
109
|
&.disabled {
|
|
92
110
|
cursor: not-allowed;
|
|
93
|
-
color: var(--
|
|
94
|
-
|
|
111
|
+
color: var(--sys-color-text-interactive-disabled);
|
|
112
|
+
|
|
113
|
+
> i {
|
|
114
|
+
color: var(--sys-color-icon-interactive-disabled);
|
|
115
|
+
}
|
|
95
116
|
}
|
|
96
117
|
|
|
97
118
|
// Active tab
|
|
98
119
|
&.active {
|
|
99
|
-
color: var(--
|
|
120
|
+
color: var(--sys-color-text-interactive-active);
|
|
121
|
+
// Fakes bold without the reflow real bold would cause; Figma specifies
|
|
122
|
+
// `Body - Bold` here.
|
|
100
123
|
text-shadow: 0.5px 0 0 currentColor;
|
|
101
124
|
|
|
102
|
-
|
|
125
|
+
> i {
|
|
126
|
+
color: var(--sys-color-icon-interactive-active);
|
|
127
|
+
}
|
|
128
|
+
|
|
103
129
|
&::after {
|
|
104
|
-
content: '';
|
|
105
|
-
position: absolute;
|
|
106
|
-
bottom: -1px;
|
|
107
|
-
left: 0;
|
|
108
|
-
right: 0;
|
|
109
130
|
height: 4px;
|
|
110
|
-
background-color: var(--
|
|
131
|
+
background-color: var(--sys-color-border-interactive-active);
|
|
111
132
|
}
|
|
112
133
|
|
|
113
134
|
&:focus-visible {
|
|
114
135
|
outline: none;
|
|
115
|
-
box-shadow: inset 0 0 0 2px var(--
|
|
116
|
-
border-radius: var(--
|
|
136
|
+
box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
|
|
137
|
+
border-radius: var(--sys-radius-inner);
|
|
117
138
|
}
|
|
118
139
|
}
|
|
119
140
|
|
|
120
|
-
// Feature locked tab
|
|
141
|
+
// Feature locked tab — only the lock glyph and the active treatment differ.
|
|
142
|
+
// Hover and pressed reuse the shared grey borders above.
|
|
121
143
|
&.feature-locked {
|
|
122
144
|
// Only the lock icon (last <i>) gets feature-lock color;
|
|
123
145
|
// start icon inherits text color like in Angular
|
|
124
146
|
> i:last-of-type {
|
|
125
|
-
color: var(--
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&:hover:not(:disabled):not(.active) {
|
|
129
|
-
background-color: var(--comp-tabs-tab-feature-locked-hover-background-color);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&:focus-visible:not(.active) {
|
|
133
|
-
color: var(--comp-tabs-tab-text-color-feature-locked-focus);
|
|
134
|
-
background-color: var(--comp-tabs-tab-feature-locked-focus-background-color);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&:active:not(:disabled):not(.active) {
|
|
138
|
-
background-color: var(--comp-tabs-tab-feature-locked-active-background-color);
|
|
147
|
+
color: var(--sys-color-icon-featurelock);
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
&.active {
|
|
142
|
-
color: var(--
|
|
151
|
+
color: var(--sys-color-text-featurelock);
|
|
143
152
|
text-shadow: 0.5px 0 0 currentColor;
|
|
144
153
|
|
|
145
|
-
|
|
146
|
-
|
|
154
|
+
> i:first-of-type {
|
|
155
|
+
color: var(--sys-color-icon-featurelock);
|
|
147
156
|
}
|
|
148
157
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
box-shadow: inset 0 0 0 2px var(--comp-tabs-tab-focus-color);
|
|
152
|
-
border-radius: var(--comp-tabs-tab-focus-border-radius);
|
|
158
|
+
&::after {
|
|
159
|
+
background-color: var(--sys-color-border-featurelock);
|
|
153
160
|
}
|
|
154
161
|
}
|
|
155
162
|
}
|
|
@@ -160,7 +167,7 @@
|
|
|
160
167
|
position: absolute;
|
|
161
168
|
bottom: -1px;
|
|
162
169
|
height: 4px;
|
|
163
|
-
background-color: var(--
|
|
170
|
+
background-color: var(--sys-color-border-interactive-active);
|
|
164
171
|
transition:
|
|
165
172
|
transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
|
|
166
173
|
width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
|
|
@@ -168,7 +175,7 @@
|
|
|
168
175
|
transform-origin: left;
|
|
169
176
|
|
|
170
177
|
&.feature-locked {
|
|
171
|
-
background-color: var(--
|
|
178
|
+
background-color: var(--sys-color-border-featurelock);
|
|
172
179
|
}
|
|
173
180
|
}
|
|
174
181
|
|
|
@@ -181,6 +188,7 @@
|
|
|
181
188
|
// Tab panel
|
|
182
189
|
.ap-tabs-panel {
|
|
183
190
|
display: none;
|
|
191
|
+
// 24px: no sys spacing token covers it (the container scale stops at 16px).
|
|
184
192
|
padding: var(--ref-spacing-md) 0;
|
|
185
193
|
|
|
186
194
|
&.active {
|
|
@@ -5,33 +5,29 @@
|
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
8
|
-
height: var(--
|
|
9
|
-
max-height: var(--
|
|
8
|
+
height: var(--sys-height-chip);
|
|
9
|
+
max-height: var(--sys-height-chip);
|
|
10
10
|
box-sizing: border-box;
|
|
11
|
-
border
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
gap: var(--ref-spacing-xxxs);
|
|
11
|
+
border: none;
|
|
12
|
+
padding: 0 var(--ref-spacing-xxxs);
|
|
13
|
+
border-radius: var(--sys-radius-inner);
|
|
14
|
+
gap: var(--sys-spacing-inline-icon-small);
|
|
16
15
|
vertical-align: middle;
|
|
17
16
|
|
|
18
17
|
// Text styles on container (span optional)
|
|
19
|
-
|
|
20
|
-
line-height: var(--comp-tag-text-style-line-height);
|
|
21
|
-
font-weight: var(--comp-tag-text-style-font-weight);
|
|
22
|
-
font-family: var(--comp-tag-text-style-font-family);
|
|
18
|
+
@include m.text-style('body');
|
|
23
19
|
white-space: nowrap;
|
|
24
20
|
text-decoration: none;
|
|
25
21
|
|
|
26
22
|
// Auto-detect close button — tighter right padding
|
|
27
23
|
&:has(> button) {
|
|
28
|
-
padding: 0
|
|
24
|
+
padding: 0 2px 0 var(--ref-spacing-xxxs);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
// Mini size
|
|
32
28
|
&.mini {
|
|
33
|
-
height:
|
|
34
|
-
padding: 0
|
|
29
|
+
height: 18px;
|
|
30
|
+
padding: 0 2px;
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
// Text truncation — use > span when combined with a close button
|
|
@@ -48,6 +44,8 @@
|
|
|
48
44
|
|
|
49
45
|
// Close button with <i class="ap-icon-close"> inside
|
|
50
46
|
> button {
|
|
47
|
+
// Action icon, deliberately neutral rather than tinted (Figma: color/icon/secondary)
|
|
48
|
+
color: var(--sys-color-icon-secondary);
|
|
51
49
|
display: flex;
|
|
52
50
|
justify-content: center;
|
|
53
51
|
align-items: center;
|
|
@@ -98,62 +96,62 @@
|
|
|
98
96
|
|
|
99
97
|
// Color variants
|
|
100
98
|
&.blue {
|
|
101
|
-
background-color: var(--
|
|
102
|
-
|
|
103
|
-
color: var(--comp-tag-blue-text-color);
|
|
99
|
+
background-color: var(--sys-color-surface-category-blue);
|
|
100
|
+
color: var(--sys-color-text-category-blue);
|
|
104
101
|
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
103
|
+
> i {
|
|
104
|
+
color: var(--sys-color-icon-category-blue);
|
|
107
105
|
}
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
&.grey {
|
|
111
|
-
background-color: var(--
|
|
112
|
-
|
|
113
|
-
color: var(--comp-tag-grey-text-color);
|
|
109
|
+
background-color: var(--sys-color-surface-category-grey);
|
|
110
|
+
color: var(--sys-color-text-category-grey);
|
|
114
111
|
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
113
|
+
> i {
|
|
114
|
+
color: var(--sys-color-icon-category-grey);
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
&.tagOrange {
|
|
121
|
-
background-color: var(--
|
|
122
|
-
|
|
123
|
-
color: var(--comp-tag-tag-orange-text-color);
|
|
119
|
+
background-color: var(--sys-color-surface-category-orange);
|
|
120
|
+
color: var(--sys-color-text-category-orange);
|
|
124
121
|
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
123
|
+
> i {
|
|
124
|
+
color: var(--sys-color-icon-category-orange);
|
|
127
125
|
}
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
&.menthol {
|
|
131
|
-
background-color: var(--
|
|
132
|
-
|
|
133
|
-
color: var(--comp-tag-menthol-text-color);
|
|
129
|
+
background-color: var(--sys-color-surface-category-menthol);
|
|
130
|
+
color: var(--sys-color-text-category-menthol);
|
|
134
131
|
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
133
|
+
> i {
|
|
134
|
+
color: var(--sys-color-icon-category-menthol);
|
|
137
135
|
}
|
|
138
136
|
}
|
|
139
137
|
|
|
140
138
|
&.green {
|
|
141
|
-
background-color: var(--
|
|
142
|
-
|
|
143
|
-
color: var(--comp-tag-green-text-color);
|
|
139
|
+
background-color: var(--sys-color-surface-category-green);
|
|
140
|
+
color: var(--sys-color-text-category-green);
|
|
144
141
|
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
143
|
+
> i {
|
|
144
|
+
color: var(--sys-color-icon-category-green);
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
&.red {
|
|
151
|
-
background-color: var(--
|
|
152
|
-
|
|
153
|
-
color: var(--comp-tag-red-text-color);
|
|
149
|
+
background-color: var(--sys-color-surface-category-red);
|
|
150
|
+
color: var(--sys-color-text-category-red);
|
|
154
151
|
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
153
|
+
> i {
|
|
154
|
+
color: var(--sys-color-icon-category-red);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
}
|
|
@@ -177,5 +175,5 @@
|
|
|
177
175
|
.ap-tag-list {
|
|
178
176
|
display: flex;
|
|
179
177
|
flex-wrap: wrap;
|
|
180
|
-
gap: var(--
|
|
178
|
+
gap: var(--sys-spacing-container-sm);
|
|
181
179
|
}
|