Skip to content

Commit

Permalink
fix(ProgressBar): scale component with user font size
Browse files Browse the repository at this point in the history
  • Loading branch information
akdetrick committed Jun 3, 2024
1 parent 82eaeb0 commit d4dd099
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ProgressBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ProgressBar = ({ totalWidth = "100%", percentComplete = 0 }) => {
return (
<div
className="nds-progressbar"
style={{ width: `${totalWidth}`, height: "18px" }}
style={{ width: `${totalWidth}`, height: "var(--font-size-default)" }}
>
<svg xmlns="http://www.w3.org/2000/svg">
<line
Expand Down
6 changes: 5 additions & 1 deletion src/ProgressBar/index.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.nds-progressbar {
border: 1px solid var(--theme-primary);
border-radius: var(--border-radius-default);
box-sizing: border-box;
position: relative;
}

.nds-progressbar svg {
height: 100%;
width: 100%;
height: 100%;
position: absolute;
inset: 0;
}

.nds-progressbar line {
Expand Down

0 comments on commit d4dd099

Please sign in to comment.