-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react,styles): synced styles for progress bar and added thin variant #1309
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
:root { | ||
--progress-bar-background-color: var(--accent-dark); | ||
--progress-bar-fill-color: var(--accent-info-light); | ||
--progress-bar-background-color: var(--white); | ||
--progress-bar-fill-color: var(--accent-primary); | ||
--progress-bar-border-color: var(--gray-40); | ||
--progress-bar-animation-timing: 150ms; | ||
} | ||
|
||
.ProgressBar { | ||
background-color: var(--progress-bar-background-color); | ||
padding: 2px; | ||
padding: var(--space-half); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an instance where we don't really want spacing to scale with the global padding variable. The padding in this instance is acting like a border, which we do want to have a fixed size. Additionally, I think the padding is wrong here. The thin/normal variants have a |
||
border-radius: calc((var(--space-small) * 0.5) + 2px); | ||
border: 1px solid var(--progress-bar-border-color); | ||
margin-bottom: var(--space-smallest); | ||
} | ||
|
||
|
@@ -18,3 +20,16 @@ | |
min-width: var(--space-small); | ||
transition: width linear var(--progress-bar-animation-timing); | ||
} | ||
|
||
.ProgressBar--thin .ProgressBar--fill { | ||
height: var(--space-smallest); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as above comment. This should be a fixed size and not inheriting from |
||
} | ||
|
||
.cauldron--theme-dark { | ||
--progress-bar-background-color: var(--accent-dark); | ||
--progress-bar-fill-color: var(--accent-info-light); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be immediately below |
||
|
||
.cauldron--theme-dark .ProgressBar { | ||
border: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This gives the dark themed progress bar a different footprint. It would be better to update |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With multiple examples here, we probably want each example under a level 3 heading.