Skip to content

Commit 4eeba3e

Browse files
committed
chore(full-fidelity): update progress circle design to align w/pending button
1 parent 98e780e commit 4eeba3e

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

2nd-gen/packages/swc/components/progress-circle/stories/progress-circle.stories.ts

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,12 @@ export const Indeterminate: Story = {
243243
/**
244244
* A common pattern is pairing a progress circle with a button to communicate
245245
* that an action is in progress after the user clicks. Use `size="s"` to match
246-
* typical button heights and `static-color="white"` on high-emphasis (filled)
247-
* buttons where the icon sits on a colored background.
246+
* typical button heights.
247+
*
248+
* In the S2 pending state, the button label is hidden and only the progress circle
249+
* is shown. The filled variant uses a neutral gray background; the outline variant
250+
* uses a gray border. Both use the default (accent) progress circle color since the
251+
* button background is light.
248252
*
249253
* Button loading states typically omit `progress` since the duration is unknown.
250254
*
@@ -258,50 +262,41 @@ export const LoadingButton: Story = {
258262
style="
259263
display: inline-flex;
260264
align-items: center;
261-
gap: 8px;
265+
justify-content: center;
262266
padding: 6px 16px;
263267
border: none;
264-
border-radius: 16px;
265-
background: var(--spectrum-accent-background-color-default, #378ef0);
266-
color: #fff;
267-
font: inherit;
268-
font-size: 14px;
268+
border-radius: 9999px;
269+
background: var(--spectrum-gray-200, #e8e8e8);
269270
cursor: default;
270-
opacity: 0.9;
271271
"
272272
disabled
273+
aria-label="Saving"
273274
>
274275
${template({
275276
...args,
276277
size: 's',
277-
'static-color': 'white',
278278
label: 'Saving',
279279
})}
280-
Saving…
281280
</button>
282281
<button
283282
style="
284283
display: inline-flex;
285284
align-items: center;
286-
gap: 8px;
285+
justify-content: center;
287286
padding: 6px 16px;
288-
border: 2px solid var(--spectrum-accent-background-color-default, #378ef0);
289-
border-radius: 16px;
287+
border: 1px solid var(--spectrum-gray-400, #ccc);
288+
border-radius: 9999px;
290289
background: transparent;
291-
color: var(--spectrum-accent-background-color-default, #378ef0);
292-
font: inherit;
293-
font-size: 14px;
294290
cursor: default;
295-
opacity: 0.9;
296291
"
297292
disabled
293+
aria-label="Processing"
298294
>
299295
${template({
300296
...args,
301297
size: 's',
302298
label: 'Processing',
303299
})}
304-
Processing…
305300
</button>
306301
`,
307302
parameters: {

0 commit comments

Comments
 (0)