generated from abelflopes/lerna-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use semantic HTML element for progress component
- Loading branch information
1 parent
50d647d
commit 4ae7abc
Showing
2 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 16 additions & 11 deletions
27
packages/components/progress/src/styles/index.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
@import "@react-ck/theme"; | ||
|
||
.root { | ||
background-color: get-color(neutral-light-2); | ||
height: get-spacing(0.5); | ||
border-radius: get-spacing(0.5); | ||
overflow: hidden; | ||
} | ||
-webkit-appearance: none; | ||
appearance: none; | ||
|
||
.bar { | ||
background-color: get-color(highlight-primary); | ||
width: 100%; | ||
transform: scaleX(var(--value)); | ||
transform-origin: center left; | ||
height: 100%; | ||
transition: transform ease-in-out 0.5s; | ||
height: get-spacing(0.5); | ||
|
||
&::-webkit-progress-value, | ||
&::-webkit-progress-bar { | ||
border-radius: get-spacing(0.5); | ||
} | ||
|
||
&::-webkit-progress-value { | ||
background-color: get-color(highlight-primary); | ||
} | ||
|
||
&::-webkit-progress-bar { | ||
background-color: get-color(neutral-light-2); | ||
} | ||
} |