Skip to content

Commit

Permalink
fix(components): update fill for pending button progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Nov 8, 2024
1 parent f809e2c commit 62a9369
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-emus-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@launchpad-ui/components": patch
---

Update fill for pending button progress
4 changes: 3 additions & 1 deletion packages/components/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const _Button = (
>
{composeRenderProps(props.children, (children, { isPending }) => (
<Provider values={[[TextContext, { className: isPending ? styles.pending : undefined }]]}>
{isPending && <ProgressBar isIndeterminate aria-label="loading" />}
{isPending && (
<ProgressBar isIndeterminate aria-label="loading" className={styles.progress} />
)}
{children}
</Provider>
))}
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/styles/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,7 @@
.pending {
opacity: 50%;
}

.progress {
--fill: currentColor;
}
3 changes: 2 additions & 1 deletion packages/components/src/styles/ProgressBar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
}

.progress {
--fill: var(--lp-color-gray-500);
display: inline-flex;
}

Expand All @@ -17,7 +18,7 @@
}

.innerCircle {
stroke: var(--lp-color-gray-500);
stroke: var(--fill);
}

.base {
Expand Down

0 comments on commit 62a9369

Please sign in to comment.