@deque/cauldron-styles 5.8.1 → 5.9.0-canary.07ef06bd

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.
Files changed (3) hide show
  1. package/LICENSE +362 -0
  2. package/dist/index.css +551 -87
  3. package/package.json +2 -2
package/LICENSE ADDED
@@ -0,0 +1,362 @@
1
+ Mozilla Public License, version 2.0
2
+
3
+ 1. Definitions
4
+
5
+ 1.1. "Contributor"
6
+
7
+ means each individual or legal entity that creates, contributes to the
8
+ creation of, or owns Covered Software.
9
+
10
+ 1.2. "Contributor Version"
11
+
12
+ means the combination of the Contributions of others (if any) used by a
13
+ Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+
17
+ means Covered Software of a particular Contributor.
18
+
19
+ 1.4. "Covered Software"
20
+
21
+ means Source Code Form to which the initial Contributor has attached the
22
+ notice in Exhibit A, the Executable Form of such Source Code Form, and
23
+ Modifications of such Source Code Form, in each case including portions
24
+ thereof.
25
+
26
+ 1.5. "Incompatible With Secondary Licenses"
27
+ means
28
+
29
+ a. that the initial Contributor has attached the notice described in
30
+ Exhibit B to the Covered Software; or
31
+
32
+ b. that the Covered Software was made available under the terms of
33
+ version 1.1 or earlier of the License, but not also under the terms of
34
+ a Secondary License.
35
+
36
+ 1.6. "Executable Form"
37
+
38
+ means any form of the work other than Source Code Form.
39
+
40
+ 1.7. "Larger Work"
41
+
42
+ means a work that combines Covered Software with other material, in a
43
+ separate file or files, that is not Covered Software.
44
+
45
+ 1.8. "License"
46
+
47
+ means this document.
48
+
49
+ 1.9. "Licensable"
50
+
51
+ means having the right to grant, to the maximum extent possible, whether
52
+ at the time of the initial grant or subsequently, any and all of the
53
+ rights conveyed by this License.
54
+
55
+ 1.10. "Modifications"
56
+
57
+ means any of the following:
58
+
59
+ a. any file in Source Code Form that results from an addition to,
60
+ deletion from, or modification of the contents of Covered Software; or
61
+
62
+ b. any new file in Source Code Form that contains any Covered Software.
63
+
64
+ 1.11. "Patent Claims" of a Contributor
65
+
66
+ means any patent claim(s), including without limitation, method,
67
+ process, and apparatus claims, in any patent Licensable by such
68
+ Contributor that would be infringed, but for the grant of the License,
69
+ by the making, using, selling, offering for sale, having made, import,
70
+ or transfer of either its Contributions or its Contributor Version.
71
+
72
+ 1.12. "Secondary License"
73
+
74
+ means either the GNU General Public License, Version 2.0, the GNU Lesser
75
+ General Public License, Version 2.1, the GNU Affero General Public
76
+ License, Version 3.0, or any later versions of those licenses.
77
+
78
+ 1.13. "Source Code Form"
79
+
80
+ means the form of the work preferred for making modifications.
81
+
82
+ 1.14. "You" (or "Your")
83
+
84
+ means an individual or a legal entity exercising rights under this
85
+ License. For legal entities, "You" includes any entity that controls, is
86
+ controlled by, or is under common control with You. For purposes of this
87
+ definition, "control" means (a) the power, direct or indirect, to cause
88
+ the direction or management of such entity, whether by contract or
89
+ otherwise, or (b) ownership of more than fifty percent (50%) of the
90
+ outstanding shares or beneficial ownership of such entity.
91
+
92
+
93
+ 2. License Grants and Conditions
94
+
95
+ 2.1. Grants
96
+
97
+ Each Contributor hereby grants You a world-wide, royalty-free,
98
+ non-exclusive license:
99
+
100
+ a. under intellectual property rights (other than patent or trademark)
101
+ Licensable by such Contributor to use, reproduce, make available,
102
+ modify, display, perform, distribute, and otherwise exploit its
103
+ Contributions, either on an unmodified basis, with Modifications, or
104
+ as part of a Larger Work; and
105
+
106
+ b. under Patent Claims of such Contributor to make, use, sell, offer for
107
+ sale, have made, import, and otherwise transfer either its
108
+ Contributions or its Contributor Version.
109
+
110
+ 2.2. Effective Date
111
+
112
+ The licenses granted in Section 2.1 with respect to any Contribution
113
+ become effective for each Contribution on the date the Contributor first
114
+ distributes such Contribution.
115
+
116
+ 2.3. Limitations on Grant Scope
117
+
118
+ The licenses granted in this Section 2 are the only rights granted under
119
+ this License. No additional rights or licenses will be implied from the
120
+ distribution or licensing of Covered Software under this License.
121
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
122
+ Contributor:
123
+
124
+ a. for any code that a Contributor has removed from Covered Software; or
125
+
126
+ b. for infringements caused by: (i) Your and any other third party's
127
+ modifications of Covered Software, or (ii) the combination of its
128
+ Contributions with other software (except as part of its Contributor
129
+ Version); or
130
+
131
+ c. under Patent Claims infringed by Covered Software in the absence of
132
+ its Contributions.
133
+
134
+ This License does not grant any rights in the trademarks, service marks,
135
+ or logos of any Contributor (except as may be necessary to comply with
136
+ the notice requirements in Section 3.4).
137
+
138
+ 2.4. Subsequent Licenses
139
+
140
+ No Contributor makes additional grants as a result of Your choice to
141
+ distribute the Covered Software under a subsequent version of this
142
+ License (see Section 10.2) or under the terms of a Secondary License (if
143
+ permitted under the terms of Section 3.3).
144
+
145
+ 2.5. Representation
146
+
147
+ Each Contributor represents that the Contributor believes its
148
+ Contributions are its original creation(s) or it has sufficient rights to
149
+ grant the rights to its Contributions conveyed by this License.
150
+
151
+ 2.6. Fair Use
152
+
153
+ This License is not intended to limit any rights You have under
154
+ applicable copyright doctrines of fair use, fair dealing, or other
155
+ equivalents.
156
+
157
+ 2.7. Conditions
158
+
159
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
160
+ Section 2.1.
161
+
162
+
163
+ 3. Responsibilities
164
+
165
+ 3.1. Distribution of Source Form
166
+
167
+ All distribution of Covered Software in Source Code Form, including any
168
+ Modifications that You create or to which You contribute, must be under
169
+ the terms of this License. You must inform recipients that the Source
170
+ Code Form of the Covered Software is governed by the terms of this
171
+ License, and how they can obtain a copy of this License. You may not
172
+ attempt to alter or restrict the recipients' rights in the Source Code
173
+ Form.
174
+
175
+ 3.2. Distribution of Executable Form
176
+
177
+ If You distribute Covered Software in Executable Form then:
178
+
179
+ a. such Covered Software must also be made available in Source Code Form,
180
+ as described in Section 3.1, and You must inform recipients of the
181
+ Executable Form how they can obtain a copy of such Source Code Form by
182
+ reasonable means in a timely manner, at a charge no more than the cost
183
+ of distribution to the recipient; and
184
+
185
+ b. You may distribute such Executable Form under the terms of this
186
+ License, or sublicense it under different terms, provided that the
187
+ license for the Executable Form does not attempt to limit or alter the
188
+ recipients' rights in the Source Code Form under this License.
189
+
190
+ 3.3. Distribution of a Larger Work
191
+
192
+ You may create and distribute a Larger Work under terms of Your choice,
193
+ provided that You also comply with the requirements of this License for
194
+ the Covered Software. If the Larger Work is a combination of Covered
195
+ Software with a work governed by one or more Secondary Licenses, and the
196
+ Covered Software is not Incompatible With Secondary Licenses, this
197
+ License permits You to additionally distribute such Covered Software
198
+ under the terms of such Secondary License(s), so that the recipient of
199
+ the Larger Work may, at their option, further distribute the Covered
200
+ Software under the terms of either this License or such Secondary
201
+ License(s).
202
+
203
+ 3.4. Notices
204
+
205
+ You may not remove or alter the substance of any license notices
206
+ (including copyright notices, patent notices, disclaimers of warranty, or
207
+ limitations of liability) contained within the Source Code Form of the
208
+ Covered Software, except that You may alter any license notices to the
209
+ extent required to remedy known factual inaccuracies.
210
+
211
+ 3.5. Application of Additional Terms
212
+
213
+ You may choose to offer, and to charge a fee for, warranty, support,
214
+ indemnity or liability obligations to one or more recipients of Covered
215
+ Software. However, You may do so only on Your own behalf, and not on
216
+ behalf of any Contributor. You must make it absolutely clear that any
217
+ such warranty, support, indemnity, or liability obligation is offered by
218
+ You alone, and You hereby agree to indemnify every Contributor for any
219
+ liability incurred by such Contributor as a result of warranty, support,
220
+ indemnity or liability terms You offer. You may include additional
221
+ disclaimers of warranty and limitations of liability specific to any
222
+ jurisdiction.
223
+
224
+ 4. Inability to Comply Due to Statute or Regulation
225
+
226
+ If it is impossible for You to comply with any of the terms of this License
227
+ with respect to some or all of the Covered Software due to statute,
228
+ judicial order, or regulation then You must: (a) comply with the terms of
229
+ this License to the maximum extent possible; and (b) describe the
230
+ limitations and the code they affect. Such description must be placed in a
231
+ text file included with all distributions of the Covered Software under
232
+ this License. Except to the extent prohibited by statute or regulation,
233
+ such description must be sufficiently detailed for a recipient of ordinary
234
+ skill to be able to understand it.
235
+
236
+ 5. Termination
237
+
238
+ 5.1. The rights granted under this License will terminate automatically if You
239
+ fail to comply with any of its terms. However, if You become compliant,
240
+ then the rights granted under this License from a particular Contributor
241
+ are reinstated (a) provisionally, unless and until such Contributor
242
+ explicitly and finally terminates Your grants, and (b) on an ongoing
243
+ basis, if such Contributor fails to notify You of the non-compliance by
244
+ some reasonable means prior to 60 days after You have come back into
245
+ compliance. Moreover, Your grants from a particular Contributor are
246
+ reinstated on an ongoing basis if such Contributor notifies You of the
247
+ non-compliance by some reasonable means, this is the first time You have
248
+ received notice of non-compliance with this License from such
249
+ Contributor, and You become compliant prior to 30 days after Your receipt
250
+ of the notice.
251
+
252
+ 5.2. If You initiate litigation against any entity by asserting a patent
253
+ infringement claim (excluding declaratory judgment actions,
254
+ counter-claims, and cross-claims) alleging that a Contributor Version
255
+ directly or indirectly infringes any patent, then the rights granted to
256
+ You by any and all Contributors for the Covered Software under Section
257
+ 2.1 of this License shall terminate.
258
+
259
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
260
+ license agreements (excluding distributors and resellers) which have been
261
+ validly granted by You or Your distributors under this License prior to
262
+ termination shall survive termination.
263
+
264
+ 6. Disclaimer of Warranty
265
+
266
+ Covered Software is provided under this License on an "as is" basis,
267
+ without warranty of any kind, either expressed, implied, or statutory,
268
+ including, without limitation, warranties that the Covered Software is free
269
+ of defects, merchantable, fit for a particular purpose or non-infringing.
270
+ The entire risk as to the quality and performance of the Covered Software
271
+ is with You. Should any Covered Software prove defective in any respect,
272
+ You (not any Contributor) assume the cost of any necessary servicing,
273
+ repair, or correction. This disclaimer of warranty constitutes an essential
274
+ part of this License. No use of any Covered Software is authorized under
275
+ this License except under this disclaimer.
276
+
277
+ 7. Limitation of Liability
278
+
279
+ Under no circumstances and under no legal theory, whether tort (including
280
+ negligence), contract, or otherwise, shall any Contributor, or anyone who
281
+ distributes Covered Software as permitted above, be liable to You for any
282
+ direct, indirect, special, incidental, or consequential damages of any
283
+ character including, without limitation, damages for lost profits, loss of
284
+ goodwill, work stoppage, computer failure or malfunction, or any and all
285
+ other commercial damages or losses, even if such party shall have been
286
+ informed of the possibility of such damages. This limitation of liability
287
+ shall not apply to liability for death or personal injury resulting from
288
+ such party's negligence to the extent applicable law prohibits such
289
+ limitation. Some jurisdictions do not allow the exclusion or limitation of
290
+ incidental or consequential damages, so this exclusion and limitation may
291
+ not apply to You.
292
+
293
+ 8. Litigation
294
+
295
+ Any litigation relating to this License may be brought only in the courts
296
+ of a jurisdiction where the defendant maintains its principal place of
297
+ business and such litigation shall be governed by laws of that
298
+ jurisdiction, without reference to its conflict-of-law provisions. Nothing
299
+ in this Section shall prevent a party's ability to bring cross-claims or
300
+ counter-claims.
301
+
302
+ 9. Miscellaneous
303
+
304
+ This License represents the complete agreement concerning the subject
305
+ matter hereof. If any provision of this License is held to be
306
+ unenforceable, such provision shall be reformed only to the extent
307
+ necessary to make it enforceable. Any law or regulation which provides that
308
+ the language of a contract shall be construed against the drafter shall not
309
+ be used to construe this License against a Contributor.
310
+
311
+
312
+ 10. Versions of the License
313
+
314
+ 10.1. New Versions
315
+
316
+ Mozilla Foundation is the license steward. Except as provided in Section
317
+ 10.3, no one other than the license steward has the right to modify or
318
+ publish new versions of this License. Each version will be given a
319
+ distinguishing version number.
320
+
321
+ 10.2. Effect of New Versions
322
+
323
+ You may distribute the Covered Software under the terms of the version
324
+ of the License under which You originally received the Covered Software,
325
+ or under the terms of any subsequent version published by the license
326
+ steward.
327
+
328
+ 10.3. Modified Versions
329
+
330
+ If you create software not governed by this License, and you want to
331
+ create a new license for such software, you may create and use a
332
+ modified version of this License if you rename the license and remove
333
+ any references to the name of the license steward (except to note that
334
+ such modified license differs from this License).
335
+
336
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
337
+ Licenses If You choose to distribute Source Code Form that is
338
+ Incompatible With Secondary Licenses under the terms of this version of
339
+ the License, the notice described in Exhibit B of this License must be
340
+ attached.
341
+
342
+ Exhibit A - Source Code Form License Notice
343
+
344
+ This Source Code Form is subject to the
345
+ terms of the Mozilla Public License, v.
346
+ 2.0. If a copy of the MPL was not
347
+ distributed with this file, You can
348
+ obtain one at
349
+ http://mozilla.org/MPL/2.0/.
350
+
351
+ If it is not possible or desirable to put the notice in a particular file,
352
+ then You may include the notice in a location (such as a LICENSE file in a
353
+ relevant directory) where a recipient would be likely to look for such a
354
+ notice.
355
+
356
+ You may add additional accurate notices of copyright ownership.
357
+
358
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
359
+
360
+ This Source Code Form is "Incompatible
361
+ With Secondary Licenses", as defined by
362
+ the Mozilla Public License, v. 2.0.
package/dist/index.css CHANGED
@@ -14,6 +14,7 @@
14
14
  --gray-20: #f2f2f2;
15
15
  --gray-30: #e0e0e0;
16
16
  --gray-40: #cccccc;
17
+ --gray-50: #757575;
17
18
  --gray-60: #666666;
18
19
  --gray-80: #4d4d4d;
19
20
  --gray-90: #333333;
@@ -40,7 +41,7 @@
40
41
  --accent-secondary: var(--gray-20);
41
42
  --accent-secondary-active: var(--gray-30);
42
43
  --focus-light: #b51ad1;
43
- --focus-dark: #eb94ff;
44
+ --focus-dark: #f5a4ff;
44
45
  --issue-critical: var(--accent-danger);
45
46
  --issue-serious: var(--accent-warning);
46
47
  --issue-moderate: #f0c4f8;
@@ -135,6 +136,12 @@
135
136
  /* radio card */
136
137
  --radio-card-width: 255px;
137
138
  --radio-card-height: 229px;
139
+
140
+ /* target size */
141
+ /* Note: target-size is deprecated, use --target-size-enhanced or --target-size-minimum */
142
+ --target-size: 44px;
143
+ --target-size-enhanced: var(--target-size);
144
+ --target-size-minimum: 24px;
138
145
  }
139
146
 
140
147
  .cauldron--theme-dark {
@@ -358,6 +365,7 @@ p {
358
365
  padding-top: 0;
359
366
  display: flex;
360
367
  justify-content: center;
368
+ background-color: transparent;
361
369
  }
362
370
 
363
371
  .Alert__warning .Dialog__heading:focus {
@@ -466,7 +474,7 @@ button.Link {
466
474
  }
467
475
 
468
476
  .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
469
- box-shadow: 0 0 0 1px var(--button-outline-color-primary);
477
+ box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
470
478
  }
471
479
 
472
480
  .Button--primary:focus:before,
@@ -872,12 +880,18 @@ a.IconButton {
872
880
  }
873
881
 
874
882
  :root {
875
- --dialog-background-color: var(--white);
876
- --dialog-border-color: #ccc;
877
- --dialog-header-background-color: var(--button-background-color-secondary);
883
+ --dialog-background-color: #fff;
884
+ --dialog-border-color: var(--gray-40);
885
+ --dialog-header-background-color: var(--gray-20);
886
+ --dialog-footer-background-color: var(--gray-20);
887
+ --dialog-heading-text-color: var(--header-text-color-dark);
878
888
  --dialog-padding: var(--space-small);
879
- --dialog-header-height: 42px;
880
- --target-size: 44px;
889
+ --dialog-header-height: 2.625rem;
890
+ --dialog-close-button-size: var(--target-size-minimum);
891
+ }
892
+
893
+ .cauldron--theme-dark {
894
+ --dialog-heading-text-color: #fff;
881
895
  }
882
896
 
883
897
  .Dialog {
@@ -906,7 +920,7 @@ a.IconButton {
906
920
  border: 1px solid var(--dialog-border-color);
907
921
  z-index: var(--z-index-dialog);
908
922
  position: relative;
909
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
923
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
910
924
  }
911
925
 
912
926
  .Dialog__header {
@@ -915,8 +929,7 @@ a.IconButton {
915
929
  border-bottom: 1px solid var(--dialog-border-color);
916
930
  align-items: center;
917
931
  justify-content: space-between;
918
- height: var(--dialog-header-height);
919
- text-transform: uppercase;
932
+ min-height: var(--dialog-header-height);
920
933
  font-weight: var(--font-weight-bold);
921
934
  }
922
935
 
@@ -924,20 +937,6 @@ a.IconButton {
924
937
  .Dialog__close {
925
938
  margin: 0;
926
939
  font-size: var(--text-size-small);
927
- height: calc(var(--dialog-header-height) - 8px);
928
- border-top: 4px solid transparent;
929
- border-bottom: 4px solid transparent;
930
- }
931
-
932
- .Dialog__heading:focus,
933
- .Dialog__close:focus,
934
- .Dialog__close:hover {
935
- border-bottom-color: var(--text-color-base);
936
- outline: none;
937
- }
938
-
939
- .Dialog__close:focus {
940
- border-top: 4px solid transparent;
941
940
  }
942
941
 
943
942
  .Dialog__heading {
@@ -947,14 +946,50 @@ a.IconButton {
947
946
  }
948
947
 
949
948
  .Dialog__close {
950
- color: var(--text-color-base);
951
- width: var(--dialog-header-height);
949
+ color: var(--dialog-heading-text-color);
952
950
  background-color: initial;
951
+ border: 1px solid var(--dialog-border-color);
952
+ border-radius: 3px;
953
+ padding: 0;
954
+ height: var(--dialog-close-button-size);
955
+ width: var(--dialog-close-button-size);
956
+ margin-right: var(--space-smallest);
957
+ position: relative;
958
+ }
959
+
960
+ .Dialog__close:active {
961
+ background-color: var(--dialog-border-color);
962
+ }
963
+
964
+ .Dialog__close:before {
965
+ content: '';
966
+ position: absolute;
967
+ top: -2px;
968
+ right: -2px;
969
+ bottom: -2px;
970
+ left: -2px;
971
+ border-radius: 4px;
972
+ pointer-events: none;
973
+ }
974
+
975
+ .cauldron--theme-dark .Dialog__close:before {
976
+ top: -3px;
977
+ right: -3px;
978
+ bottom: -3px;
979
+ left: -3px;
980
+ }
981
+
982
+ .Dialog__close:is(:hover, :focus):before {
983
+ box-shadow: 0 0 0 1px var(--dialog-heading-text-color);
953
984
  }
954
985
 
955
986
  .Dialog__close svg {
956
- height: var(--icon-size);
957
- width: var(--icon-size);
987
+ height: 100%;
988
+ width: 100%;
989
+ }
990
+
991
+ .cauldron--theme-dark .Dialog__close {
992
+ border-width: 2px;
958
993
  }
959
994
 
960
995
  .Dialog__content {
@@ -970,9 +1005,9 @@ a.IconButton {
970
1005
  }
971
1006
 
972
1007
  .Dialog__footer {
973
- background-color: #fff;
1008
+ background-color: var(--dialog-footer-background-color);
974
1009
  border-top: 1px solid var(--dialog-border-color);
975
- padding: calc(var(--space-small) - 4px) var(--dialog-padding);
1010
+ padding: var(--dialog-padding);
976
1011
  }
977
1012
 
978
1013
  /**
@@ -980,24 +1015,7 @@ a.IconButton {
980
1015
  */
981
1016
 
982
1017
  .Modal--info .Dialog__header {
983
- border: none;
984
1018
  background-color: transparent;
985
- height: auto;
986
- align-items: flex-start;
987
- }
988
-
989
- .Modal--info .Dialog__close {
990
- padding: var(--space-three-quarters);
991
- height: var(--target-size);
992
- width: var(--target-size);
993
- }
994
-
995
- .Modal--info .Dialog__heading {
996
- flex: 1;
997
- justify-content: center;
998
- height: auto;
999
- padding-top: var(--space-large);
1000
- margin-left: var(--target-size);
1001
1019
  }
1002
1020
 
1003
1021
  .Modal--info .Dialog__content {
@@ -1009,6 +1027,7 @@ a.IconButton {
1009
1027
  .Modal--info .Dialog__footer {
1010
1028
  display: flex;
1011
1029
  justify-content: center;
1030
+ background-color: transparent;
1012
1031
  border-top: none;
1013
1032
  padding-top: 0;
1014
1033
  }
@@ -1022,11 +1041,11 @@ a.IconButton {
1022
1041
  }
1023
1042
 
1024
1043
  .cauldron--theme-dark .Dialog__header {
1025
- border-bottom: 1px solid #5d676f;
1044
+ border-bottom: 1px solid var(--stroke-dark);
1026
1045
  }
1027
1046
 
1028
1047
  .cauldron--theme-dark .Dialog__footer {
1029
- border-top: 1px solid #5d676f;
1048
+ border-top: 1px solid var(--stroke-dark);
1030
1049
  }
1031
1050
 
1032
1051
  .cauldron--theme-dark .Dialog__header,
@@ -1039,20 +1058,14 @@ a.IconButton {
1039
1058
  color: var(--gray-20);
1040
1059
  }
1041
1060
 
1042
- .cauldron--theme-dark .Dialog__heading:focus,
1043
- .cauldron--theme-dark .Dialog__close:focus,
1044
- .cauldron--theme-dark .Dialog__close:hover {
1045
- border-bottom-color: var(--white);
1061
+ .cauldron--theme-dark .Dialog__close:active {
1062
+ color: var(--accent-medium);
1046
1063
  }
1047
1064
 
1048
1065
  .cauldron--theme-dark .Modal--info .Dialog__header,
1049
1066
  .cauldron--theme-dark .Modal--info .Dialog__content,
1050
1067
  .cauldron--theme-dark .Modal--info .Dialog__footer {
1051
- background-color: var(--accent-medium);
1052
- }
1053
-
1054
- .cauldron--theme-dark .Modal--info .Dialog__header {
1055
- border-bottom: none;
1068
+ background-color: transparent;
1056
1069
  }
1057
1070
 
1058
1071
  .cauldron--theme-dark .Modal--info .Dialog__footer {
@@ -1425,6 +1438,21 @@ a.IconButton {
1425
1438
  font-weight: var(--font-weight-ultra-bold);
1426
1439
  }
1427
1440
 
1441
+ .text--align-left {
1442
+ text-align: left !important;
1443
+ justify-content: left !important;
1444
+ }
1445
+
1446
+ .text--align-center {
1447
+ text-align: center !important;
1448
+ justify-content: center !important;
1449
+ }
1450
+
1451
+ .text--align-right {
1452
+ text-align: right !important;
1453
+ justify-content: right !important;
1454
+ }
1455
+
1428
1456
  body .is--hidden {
1429
1457
  display: none;
1430
1458
  }
@@ -1467,7 +1495,12 @@ ul.semantic-only {
1467
1495
  --field-icon-focus-color: var(--focus-light);
1468
1496
  --field-error-text-color: var(--error);
1469
1497
  --field-error-border-color: var(--error);
1498
+ --field-listbox-selected-background-color: var(--gray-50);
1499
+ --field-listbox-selected-text-color: #fff;
1500
+ --field-font-size: var(--text-size-small);
1470
1501
  --input-min-width: 250px;
1502
+ --checkbox-size: var(--icon-size);
1503
+ --radio-size: var(--icon-size);
1471
1504
  }
1472
1505
 
1473
1506
  .cauldron--theme-dark {
@@ -1482,6 +1515,7 @@ ul.semantic-only {
1482
1515
  --field-background-color-disabled: #5d676f;
1483
1516
  --field-required-text-color: var(--white);
1484
1517
  --field-label-text-color: var(--white);
1518
+ --field-label-error-text-color: var(--error);
1485
1519
  --field-label-description-text-color: var(--accent-light);
1486
1520
  --field-icon-inactive-color: var(--white);
1487
1521
  --field-icon-active-color: rgba(212, 221, 224, 0.25);
@@ -1492,6 +1526,8 @@ ul.semantic-only {
1492
1526
  --field-icon-focus-color: var(--focus-dark);
1493
1527
  --field-error-text-color: var(--error);
1494
1528
  --field-error-border-color: var(--error);
1529
+ --field-listbox-selected-background-color: var(--accent-light);
1530
+ --field-listbox-selected-text-color: var(--accent-medium);
1495
1531
  }
1496
1532
 
1497
1533
  input,
@@ -1500,7 +1536,6 @@ textarea,
1500
1536
  [role='menuitemcheckbox'],
1501
1537
  [role='menuitemradio'],
1502
1538
  [role='textbox'],
1503
- [aria-haspopup='listbox'],
1504
1539
  [role='listbox'],
1505
1540
  [role='spinbutton'] {
1506
1541
  width: 100%;
@@ -1517,7 +1552,6 @@ textarea,
1517
1552
  [role='menuitemcheckbox'],
1518
1553
  [role='menuitemradio'],
1519
1554
  [role='textbox'],
1520
- [aria-haspopup='listbox'],
1521
1555
  [role='listbox'],
1522
1556
  [role='spinbutton'] {
1523
1557
  border: 1px solid var(--field-border-color);
@@ -1529,7 +1563,6 @@ textarea:focus,
1529
1563
  [role='menuitemcheckbox']:focus,
1530
1564
  [role='menuitemradio']:focus,
1531
1565
  [role='textbox']:focus,
1532
- [aria-haspopup='listbox']:focus,
1533
1566
  [role='listbox']:focus,
1534
1567
  [role='spinbutton']:focus {
1535
1568
  outline: 0;
@@ -1545,7 +1578,6 @@ textarea:hover,
1545
1578
  [role='menuitemcheckbox']:hover,
1546
1579
  [role='menuitemradio']:hover,
1547
1580
  [role='textbox']:hover,
1548
- [aria-haspopup='listbox']:hover,
1549
1581
  [role='listbox']:hover,
1550
1582
  [role='spinbutton']:hover {
1551
1583
  border: 1px solid var(--field-border-color-hover);
@@ -1557,7 +1589,6 @@ textarea:focus:hover,
1557
1589
  [role='menuitemcheckbox']:focus:hover,
1558
1590
  [role='menuitemradio']:focus:hover,
1559
1591
  [role='textbox']:focus:hover,
1560
- [aria-haspopup='listbox']:focus:hover,
1561
1592
  [role='listbox']:focus:hover,
1562
1593
  [role='spinbutton']:focus:hover {
1563
1594
  border: 1px solid var(--field-border-color-focus-hover);
@@ -1569,7 +1600,6 @@ textarea.Field--has-error,
1569
1600
  [role='menuitemcheckbox'].Field--has-error,
1570
1601
  [role='menuitemradio'].Field--has-error,
1571
1602
  [role='textbox'].Field--has-error,
1572
- [aria-haspopup='listbox'].Field--has-error,
1573
1603
  [role='listbox'].Field--has-error,
1574
1604
  [role='spinbutton'].Field--has-error {
1575
1605
  border: 1px solid var(--field-border-color-error);
@@ -1579,7 +1609,9 @@ textarea.Field--has-error,
1579
1609
  color: var(--field-border-color-error);
1580
1610
  }
1581
1611
 
1582
- .Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(.Checkbox__overlay--disabled) {
1612
+ .Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(
1613
+ .Checkbox__overlay--disabled
1614
+ ) {
1583
1615
  background-color: var(--field-icon-error-active-color);
1584
1616
  }
1585
1617
 
@@ -1589,7 +1621,6 @@ textarea.Field--has-error:hover,
1589
1621
  [role='menuitemcheckbox'].Field--has-error:hover,
1590
1622
  [role='menuitemradio'].Field--has-error:hover,
1591
1623
  [role='textbox'].Field--has-error:hover,
1592
- [aria-haspopup='listbox'].Field--has-error:hover,
1593
1624
  [role='listbox'].Field--has-error:hover,
1594
1625
  [role='spinbutton'].Field--has-error:hover {
1595
1626
  border-color: var(--field-border-color-error-hover);
@@ -1601,7 +1632,6 @@ textarea.Field--has-error:focus,
1601
1632
  [role='menuitemcheckbox'].Field--has-error:focus,
1602
1633
  [role='menuitemradio'].Field--has-error:focus,
1603
1634
  [role='textbox'].Field--has-error:focus,
1604
- [aria-haspopup='listbox'].Field--has-error:focus,
1605
1635
  [role='listbox'].Field--has-error:focus,
1606
1636
  [role='spinbutton'].Field--has-error:focus {
1607
1637
  border: 1px solid var(--field-border-color-error);
@@ -1616,12 +1646,27 @@ textarea.Field--has-error:focus:hover,
1616
1646
  [role='menuitemcheckbox'].Field--has-error:focus:hover,
1617
1647
  [role='menuitemradio'].Field--has-error:focus:hover,
1618
1648
  [role='textbox'].Field--has-error:focus:hover,
1619
- [aria-haspopup='listbox'].Field--has-error:focus:hover,
1620
1649
  [role='listbox'].Field--has-error:focus:hover,
1621
1650
  [role='spinbutton'].Field--has-error:focus:hover {
1622
1651
  border-color: var(--field-border-color-error-hover);
1623
1652
  }
1624
1653
 
1654
+ [role='listbox'] > li,
1655
+ [role='listbox'] > [role='group'] > li {
1656
+ list-style-type: none;
1657
+ }
1658
+
1659
+ [role='listbox']:focus-within > li.ListboxOption--active,
1660
+ [role='listbox']:focus-within > [role='group'] > li.ListboxOption--active {
1661
+ box-shadow: 0 0 0 2px var(--field-icon-focus-color);
1662
+ }
1663
+
1664
+ [role='listbox']
1665
+ li[role='option']:is([aria-selected='true'], [aria-checked='true']) {
1666
+ background-color: var(--field-listbox-selected-background-color);
1667
+ color: var(--field-listbox-selected-text-color);
1668
+ }
1669
+
1625
1670
  .Error {
1626
1671
  color: var(--field-error-text-color);
1627
1672
  text-align: left;
@@ -1749,7 +1794,7 @@ textarea.Field--has-error:focus:hover,
1749
1794
  .Field__text-input {
1750
1795
  padding: var(--space-smallest);
1751
1796
  box-sizing: border-box;
1752
- font-size: var(--text-size-small);
1797
+ font-size: var(--field-font-size);
1753
1798
  color: var(--field-content-color);
1754
1799
  min-width: min(var(--input-min-width), 100%);
1755
1800
  }
@@ -1763,7 +1808,7 @@ textarea.Field--has-error:focus:hover,
1763
1808
  .Field__textarea {
1764
1809
  display: block;
1765
1810
  min-height: 56px;
1766
- font-size: var(--text-size-small);
1811
+ font-size: var(--field-font-size);
1767
1812
  min-width: min(var(--input-min-width), 100%);
1768
1813
  padding: var(--space-half);
1769
1814
  max-width: 500px;
@@ -1783,11 +1828,18 @@ textarea.Field--has-error:focus:hover,
1783
1828
  font-weight: var(--font-weight-normal);
1784
1829
  line-height: 1;
1785
1830
  margin-top: var(--space-half);
1786
- margin-left: calc(24px + 2px + var(--space-half));
1787
1831
  cursor: default;
1788
1832
  display: flex;
1789
1833
  }
1790
1834
 
1835
+ .Checkbox__wrap .Field__labelDescription {
1836
+ margin-left: calc(var(--checkbox-size) + 2px + var(--space-half));
1837
+ }
1838
+
1839
+ .Radio__wrap .Field__labelDescription {
1840
+ margin-left: calc(var(--radio-size) + 2px + var(--space-half));
1841
+ }
1842
+
1791
1843
  .Field__labelDescription + .Error {
1792
1844
  margin-top: var(--space-smallest);
1793
1845
  }
@@ -1815,6 +1867,16 @@ textarea.Field--has-error:focus:hover,
1815
1867
  pointer-events: none;
1816
1868
  }
1817
1869
 
1870
+ .Radio__overlay svg {
1871
+ height: var(--radio-size);
1872
+ width: var(--radio-size);
1873
+ }
1874
+
1875
+ .Checkbox__overlay svg {
1876
+ height: var(--checkbox-size);
1877
+ width: var(--checkbox-size);
1878
+ }
1879
+
1818
1880
  .Radio__overlay:active:not(.Radio__overlay--disabled),
1819
1881
  .Checkbox__overlay:active:not(.Checkbox__overlay--disabled) {
1820
1882
  background-color: var(--field-icon-active-color);
@@ -3140,14 +3202,26 @@ button.TooltipTabstop {
3140
3202
  margin-top: -1px;
3141
3203
  }
3142
3204
 
3205
+ :root {
3206
+ --code-text-color: var(--accent-primary-active);
3207
+ --code-border-color: var(--stroke-light);
3208
+ --code-background-color: var(--background-light);
3209
+ }
3210
+
3211
+ .cauldron--theme-dark {
3212
+ --code-text-color: var(--accent-light);
3213
+ --code-background-color: var(--accent-dark);
3214
+ --code-border-color: var(--stroke-dark);
3215
+ }
3216
+
3143
3217
  .Code.hljs {
3144
3218
  display: block;
3145
- padding: 0.5em;
3146
- background: var(--gray-20);
3147
- color: var(--gray-90);
3148
- border: 1px solid var(--gray-40);
3149
- color: var(--accent-primary-active);
3150
- word-break: anywhere;
3219
+ padding: var(--space-smaller);
3220
+ background: var(--code-background-color);
3221
+ border: 1px solid var(--code-border-color);
3222
+ border-radius: 3px;
3223
+ color: var(--code-text-color);
3224
+ word-break: break-all;
3151
3225
  }
3152
3226
 
3153
3227
  .Code--scrollable {
@@ -3247,12 +3321,6 @@ button.TooltipTabstop {
3247
3321
 
3248
3322
  /* Dark Theme */
3249
3323
 
3250
- .cauldron--theme-dark .Code.hljs {
3251
- background: var(--accent-dark);
3252
- color: var(--accent-light);
3253
- border: 1px solid transparent;
3254
- }
3255
-
3256
3324
  .cauldron--theme-dark .Code .hljs-string {
3257
3325
  color: #8abeb7;
3258
3326
  }
@@ -3492,12 +3560,30 @@ button.TooltipTabstop {
3492
3560
  font-weight: var(--font-weight-normal);
3493
3561
  }
3494
3562
 
3563
+ :root {
3564
+ --tag-button-icon-size: 15px;
3565
+ }
3566
+
3567
+ .TagButton {
3568
+ vertical-align: middle;
3569
+ }
3570
+
3571
+ .TagButton__icon {
3572
+ margin-left: var(--space-half);
3573
+ }
3574
+
3575
+ .TagButton__icon svg {
3576
+ width: var(--tag-button-icon-size);
3577
+ height: var(--tag-button-icon-size);
3578
+ }
3579
+
3495
3580
  :root {
3496
3581
  --table-header-text-color: var(--gray-90);
3497
3582
  --table-header-background-color: var(--gray-20);
3498
3583
  --table-header-sorting-background-color: #caddec;
3499
- --table-header-sorting-text-color: var(--gray-90);
3500
3584
  --table-header-background-color-hover: #dddddd;
3585
+ /* --table-header-sorting-text-color will be deprecated */
3586
+ --table-header-sorting-text-color: var(--gray-90);
3501
3587
  --table-cell-text-color: var(--gray-60);
3502
3588
  --table-cell-background-color: var(--white);
3503
3589
  --table-row-border-color: var(--gray-40);
@@ -3509,8 +3595,9 @@ button.TooltipTabstop {
3509
3595
  .cauldron--theme-dark {
3510
3596
  --table-header-text-color: var(--white);
3511
3597
  --table-header-background-color: var(--accent-dark);
3512
- --table-header-sorting-background-color: #53636e;
3598
+ /* --table-header-sorting-text-color will be deprecated */
3513
3599
  --table-header-sorting-text-color: var(--white);
3600
+ --table-header-sorting-background-color: #53636e;
3514
3601
  --table-header-background-color-hover: #53636e;
3515
3602
  --table-cell-text-color: var(--accent-light);
3516
3603
  --table-cell-background-color: var(--accent-medium);
@@ -3566,6 +3653,8 @@ button.TooltipTabstop {
3566
3653
  border-bottom: 3px solid var(--table-header-sorting-border-color);
3567
3654
  }
3568
3655
 
3656
+ /* These styles are not applying and will be deprecated */
3657
+
3569
3658
  .TableHeader--sort-ascending .TableHeader__sort-button,
3570
3659
  .TableHeader--sort-decscending .TableHeader__sort-button {
3571
3660
  color: var(--table-header-sorting-text-color);
@@ -4001,6 +4090,126 @@ fieldset.Panel {
4001
4090
  --panel-content-color: var(--accent-light);
4002
4091
  }
4003
4092
 
4093
+ :root {
4094
+ --popover-background-color: var(--gray-10);
4095
+ --popover-border-color: var(--gray-90);
4096
+ --popover-text-color: var(--gray-90);
4097
+ --popover-box-shadow: rgba(0, 0, 0, 0.35) 0 0 10px 0;
4098
+ --popover-font-size: var(--text-size-smaller);
4099
+ --popover-line-height: var(--text-size-normal);
4100
+ --popover-padding: 0 var(--space-small);
4101
+ --popover-alert-max-width: 12rem;
4102
+ --popover-alert-padding: var(--space-small);
4103
+ --popover-alert-apply-button-margin: var(--space-smallest) 0;
4104
+ }
4105
+
4106
+ /* Dark theme variables */
4107
+
4108
+ .cauldron--theme-dark {
4109
+ --popover-background-color: var(--accent-medium);
4110
+ --popover-border-color: var(--accent-light);
4111
+ --popover-text-color: var(--white);
4112
+ }
4113
+
4114
+ .Popover {
4115
+ background-color: var(--popover-background-color);
4116
+ border: 2px solid var(--popover-border-color);
4117
+ box-shadow: var(--popover-box-shadow);
4118
+ color: var(--popover-text-color);
4119
+ font-size: var(--popover-font-size);
4120
+ line-height: var(--popover-line-height);
4121
+ padding: var(--popover-padding);
4122
+ word-break: break-word;
4123
+ }
4124
+
4125
+ .Popover--hidden {
4126
+ visibility: hidden;
4127
+ /* Take the tooltip out of the DOM layout flow so it doesn't reserve space when hidden */
4128
+ position: fixed !important;
4129
+ }
4130
+
4131
+ /* TooltipArrow needs some dimensions to accurately calculate its positioning */
4132
+
4133
+ .Popover__popoverArrow {
4134
+ height: 0.1px;
4135
+ width: 0.1px;
4136
+ }
4137
+
4138
+ .Popover__borderLeft {
4139
+ position: absolute;
4140
+ left: 4px;
4141
+ top: var(--space-half);
4142
+ height: calc(100% - (var(--space-half) * 2));
4143
+ width: 3px;
4144
+ background-color: var(--popover-border-color);
4145
+ }
4146
+
4147
+ /* Adjust position to try to center the arrow in the tooltip's border */
4148
+
4149
+ [class*='Popover--top'] .Popover__popoverArrow {
4150
+ bottom: -1px;
4151
+ }
4152
+
4153
+ [class*='Popover--bottom'] .Popover__popoverArrow {
4154
+ top: -1px;
4155
+ }
4156
+
4157
+ [class*='Popover--left'] .Popover__popoverArrow {
4158
+ right: -1px;
4159
+ }
4160
+
4161
+ [class*='Popover--right'] .Popover__popoverArrow {
4162
+ left: 0;
4163
+ }
4164
+
4165
+ /*
4166
+ * Default tooltip arrow styles
4167
+ */
4168
+
4169
+ .Popover__popoverArrow:before {
4170
+ content: '';
4171
+ position: absolute;
4172
+ border-left: 6px solid transparent;
4173
+ border-right: 6px solid transparent;
4174
+ border-top: 7px solid var(--popover-border-color);
4175
+ border-bottom: none;
4176
+ transform: translateX(-50%);
4177
+ transform-origin: top;
4178
+ }
4179
+
4180
+ [class*='Popover--bottom'] .Popover__popoverArrow:before {
4181
+ transform: translateX(-50%) rotate(180deg);
4182
+ }
4183
+
4184
+ [class*='Popover--left'] .Popover__popoverArrow:before {
4185
+ transform: rotate(-90deg) translateY(-6px);
4186
+ }
4187
+
4188
+ [class*='Popover--right'] .Popover__popoverArrow:before {
4189
+ transform: rotate(90deg) translateY(100%);
4190
+ }
4191
+
4192
+ /* Alert popover styles */
4193
+
4194
+ .Popover--prompt {
4195
+ display: flex;
4196
+ flex-direction: column;
4197
+ align-items: center;
4198
+ justify-content: center;
4199
+ text-align: center;
4200
+ padding: var(--popover-alert-padding);
4201
+ max-width: var(--popover-alert-max-width);
4202
+ }
4203
+
4204
+ .Popover--prompt > .Button--thin {
4205
+ width: 100%;
4206
+ margin-left: 0;
4207
+ }
4208
+
4209
+ .Popover__apply {
4210
+ margin: var(--popover-alert-apply-button-margin);
4211
+ }
4212
+
4004
4213
  :root {
4005
4214
  --issue-panel-border-color: var(--gray-40);
4006
4215
  --issue-panel-header-background-color: var(--gray-20);
@@ -4644,7 +4853,12 @@ fieldset.Panel {
4644
4853
 
4645
4854
  .TwoColumnPanel--hide .TwoColumnPanel__Left,
4646
4855
  .TwoColumnPanel--show .TwoColumnPanel__Left {
4647
- margin-left: calc(var(--two-column-panel-left-column-width) * -1);
4856
+ max-width: 100%;
4857
+ /* This will constrain the component to the max-width of its container, as well as adjusting the offset margin to the max negative value to prevent incorrect offset when the max-width is less than the column width. */
4858
+ margin-left: max(
4859
+ calc(var(--two-column-panel-left-column-width) * -1),
4860
+ calc(100% * -1)
4861
+ );
4648
4862
  animation: none;
4649
4863
  opacity: 1;
4650
4864
  }
@@ -4790,7 +5004,7 @@ button.Accordion__trigger {
4790
5004
  .Notice .Notice__title,
4791
5005
  .Notice .Notice__title > :is(h1, h2, h3, h4, h5, h6) {
4792
5006
  display: flex;
4793
- align-items: center;
5007
+ align-items: flex-start;
4794
5008
  font-size: var(--text-size-small);
4795
5009
  font-weight: var(--notice-title-font-weight);
4796
5010
  margin: 0;
@@ -4838,3 +5052,253 @@ button.Accordion__trigger {
4838
5052
  margin-top: 0;
4839
5053
  margin-bottom: var(--space-smallest);
4840
5054
  }
5055
+
5056
+ :root {
5057
+ --combobox-input-border-color: var(--field-border-color);
5058
+ --combobox-input-background-color: var(--field-background-color);
5059
+ --combobox-input-border-focus-color: var(--field-border-color-focus);
5060
+ --combobox-input-border-hover-color: var(--field-border-color-focus-hover);
5061
+ --combobox-input-border-focus-glow-color: var(
5062
+ --field-border-color-focus-glow
5063
+ );
5064
+ --combobox-input-error-border-color: var(--field-border-color-error);
5065
+ --combobox-input-error-focus-border-color: var(
5066
+ --field-border-color-error-hover
5067
+ );
5068
+ --combobox-input-error-focus-border-glow-color: var(
5069
+ --field-border-color-focus-glow
5070
+ );
5071
+ --combobox-input-font-size: var(--field-font-size);
5072
+ --combobox-input-font-color: var(--field-content-color);
5073
+ --combobox-listbox-border-color: var(--gray-40);
5074
+ --combobox-listbox-background-color: #fff;
5075
+ --combobox-option-font-color: var(--gray-90);
5076
+ --combobox-option-hover-background-color: var(--gray-20);
5077
+ --combobox-option-description-font-color: var(--gray-60);
5078
+ --combobox-option-description-font-size: var(--text-size-smaller);
5079
+ --combobox-option-min-height: 2.625rem;
5080
+ --combobox-group-label-background-color: var(--gray-20);
5081
+ --combobox-group-label-font-size: var(--text-size-smaller);
5082
+ --combobox-option-selected-icon-color: var(--accent-success-dark);
5083
+ }
5084
+
5085
+ .cauldron--theme-dark {
5086
+ --combobox-input-border-color: var(--field-border-color);
5087
+ --combobox-input-background-color: var(--field-background-color);
5088
+ --combobox-input-border-focus-color: var(--field-border-color-focus);
5089
+ --combobox-input-border-hover-color: var(--field-border-color-focus-hover);
5090
+ --combobox-input-border-focus-glow-color: var(
5091
+ --field-border-color-focus-glow
5092
+ );
5093
+ --combobox-input-error-border-color: var(--field-border-color-error);
5094
+ --combobox-input-error-focus-border-color: var(
5095
+ --field-border-color-error-hover
5096
+ );
5097
+ --combobox-input-error-focus-border-glow-color: var(
5098
+ --field-border-color-focus-glow
5099
+ );
5100
+ --combobox-input-font-color: var(--field-content-color);
5101
+ --combobox-option-font-color: var(--text-color-light);
5102
+ --combobox-option-hover-background-color: var(--accent-dark);
5103
+ --combobox-option-description-font-color: var(--accent-light);
5104
+ --combobox-listbox-background-color: var(--accent-medium);
5105
+ --combobox-group-label-background-color: var(--accent-dark);
5106
+ --combobox-option-selected-icon-color: var(--accent-success-light);
5107
+ }
5108
+
5109
+ .Combobox {
5110
+ --field-listbox-selected-background-color: transparent;
5111
+ position: relative;
5112
+ }
5113
+
5114
+ .Combobox input:is(*, :focus, :hover) {
5115
+ border: none;
5116
+ box-shadow: none;
5117
+ margin: initial;
5118
+ padding: var(--space-smallest);
5119
+ }
5120
+
5121
+ .Combobox__input {
5122
+ position: relative;
5123
+ display: flex;
5124
+ align-items: center;
5125
+ border: 1px solid var(--combobox-input-border-color);
5126
+ border-bottom: 1px solid var(--field-border-color-underline);
5127
+ margin-bottom: var(--space-half);
5128
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
5129
+ background-color: var(--combobox-input-background-color);
5130
+ }
5131
+
5132
+ .cauldron--theme-dark .Combobox__input {
5133
+ border: 1px solid var(--combobox-input-border-color);
5134
+ }
5135
+
5136
+ .Combobox__input:hover,
5137
+ .cauldron--theme-dark .Combobox__input:hover {
5138
+ border-color: var(--combobox-input-border-hover-color);
5139
+ }
5140
+
5141
+ .Combobox__input input[type='text'] {
5142
+ font-size: var(--combobox-input-font-size);
5143
+ color: var(--combobox-input-font-color);
5144
+ margin-right: 1.25rem;
5145
+ }
5146
+
5147
+ .Combobox__input:focus-within {
5148
+ border: 1px solid var(--combobox-input-border-focus-color);
5149
+ box-shadow: 0 0 0 2px var(--combobox-input-border-focus-color),
5150
+ 0 0 5px var(--combobox-input-border-focus-glow-color),
5151
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
5152
+ }
5153
+
5154
+ .Combobox__arrow {
5155
+ width: 2rem;
5156
+ display: flex;
5157
+ justify-content: center;
5158
+ position: absolute;
5159
+ right: 0;
5160
+ pointer-events: none;
5161
+ }
5162
+
5163
+ .Combobox__arrow:before {
5164
+ content: '';
5165
+ display: inline-block;
5166
+ border-top: 7px solid currentColor;
5167
+ border-left: 6px solid transparent;
5168
+ border-right: 6px solid transparent;
5169
+ border-radius: 2px;
5170
+ }
5171
+
5172
+ .Combobox__listbox {
5173
+ display: none;
5174
+ position: absolute;
5175
+ min-width: 100%;
5176
+ border: 1px solid var(--combobox-listbox-border-color);
5177
+ box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);
5178
+ background-color: var(--combobox-listbox-background-color);
5179
+ z-index: var(--z-index-listbox);
5180
+ max-width: var(--combobox-listbox-max-width, 100%);
5181
+ max-height: var(
5182
+ --combobox-listbox-max-height,
5183
+ calc(var(--combobox-option-min-height) * 10)
5184
+ );
5185
+ overflow-y: auto;
5186
+ animation: combobox-animate-in ease-out 150ms;
5187
+ }
5188
+
5189
+ @keyframes combobox-animate-in {
5190
+ from {
5191
+ transform: translateY(-8px);
5192
+ opacity: 0;
5193
+ }
5194
+ to {
5195
+ opacity: 1;
5196
+ }
5197
+ }
5198
+
5199
+ @media (prefers-reduced-motion) {
5200
+ .Combobox__listbox {
5201
+ animation: none;
5202
+ }
5203
+ }
5204
+
5205
+ .Combobox__listbox:hover {
5206
+ border-color: var(--combobox-listbox-border-color);
5207
+ }
5208
+
5209
+ /*
5210
+ * Note: Firefox doesn't yet have full support for :has, so .Combobox__listbox--open
5211
+ * is provided as a fallback selector to indicate open listboxes
5212
+ * see: https://caniuse.com/css-has
5213
+ */
5214
+
5215
+ .Combobox:has([role='combobox'][aria-expanded='true']) .Combobox__listbox,
5216
+ .Combobox__listbox--open {
5217
+ display: block;
5218
+ }
5219
+
5220
+ .Combobox__listbox li {
5221
+ list-style-type: none;
5222
+ }
5223
+
5224
+ .Combobox__listbox > ul[role='group']:not(:last-child) {
5225
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5226
+ }
5227
+
5228
+ .ComboboxGroup__label {
5229
+ background-color: var(--combobox-group-label-background-color);
5230
+ padding: var(--space-smallest);
5231
+ font-size: var(--combobox-group-label-font-size);
5232
+ font-weight: var(--font-weight-medium);
5233
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5234
+ }
5235
+
5236
+ .ComboboxGroup--hidden {
5237
+ display: none !important;
5238
+ }
5239
+
5240
+ .ComboboxOption {
5241
+ --field-listbox-selected-text-color: var(--combobox-option-font-color);
5242
+ color: var(--combobox-option-font-color);
5243
+ padding: var(--space-smallest);
5244
+ cursor: pointer;
5245
+ display: flex;
5246
+ align-items: center;
5247
+ gap: var(--space-half);
5248
+ justify-content: space-between;
5249
+ min-height: var(--combobox-option-min-height);
5250
+ }
5251
+
5252
+ .ComboboxOption:not(:last-child) {
5253
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5254
+ }
5255
+
5256
+ .ComboboxOption--active {
5257
+ box-shadow: inset 0 0 0 1px var(--combobox-listbox-background-color),
5258
+ inset 0 0 0 3px var(--focus);
5259
+ }
5260
+
5261
+ .ComboboxOption:is(:hover, [role='option'][aria-selected='true']:hover) {
5262
+ background-color: var(--combobox-option-hover-background-color);
5263
+ }
5264
+
5265
+ .ComboboxOption .Icon {
5266
+ color: var(--combobox-option-selected-icon-color);
5267
+ }
5268
+
5269
+ .ComboboxOption .Icon svg {
5270
+ padding: 4px;
5271
+ height: 1.6em;
5272
+ width: 1.6em;
5273
+ border: 2.5px solid currentColor;
5274
+ border-radius: 50%;
5275
+ }
5276
+
5277
+ .ComboboxOption__match {
5278
+ text-decoration: underline;
5279
+ font-style: normal;
5280
+ font-weight: var(--font-weight-medium);
5281
+ }
5282
+
5283
+ .ComboboxOption__description {
5284
+ padding-top: var(--space-half);
5285
+ padding-bottom: var(--space-quarter);
5286
+ color: var(--combobox-option-description-font-color);
5287
+ font-size: var(--combobox-option-description-font-size);
5288
+ }
5289
+
5290
+ .Combobox__input--error {
5291
+ border: 1px solid var(--combobox-input-error-border-color);
5292
+ }
5293
+
5294
+ .Combobox__input--error:focus-within {
5295
+ border: 1px solid var(--combobox-input-error-border-color);
5296
+ box-shadow: 0 0 0 1px var(--combobox-input-error-focus-border-color),
5297
+ inset 0 2px 3px 0 rgba(0, 0, 0, 0.05),
5298
+ 0 0 5px 0 var(--combobox-input-error-focus-border-glow-color);
5299
+ }
5300
+
5301
+ .ComboboxListbox__empty {
5302
+ padding: var(--space-smaller);
5303
+ text-align: center;
5304
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.8.1",
3
+ "version": "5.9.0-canary.07ef06bd",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",
@@ -22,4 +22,4 @@
22
22
  "postcss-cli": "^7.1.1",
23
23
  "postcss-import": "^12.0.1"
24
24
  }
25
- }
25
+ }