Skip to content

Commit

Permalink
TEC-4251: fix progress bar (#69)
Browse files Browse the repository at this point in the history
* TEC-4251 fix progress bar

* update version
  • Loading branch information
samuelvermeuln authored Jan 15, 2024
1 parent c35f075 commit 7710649
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 31 deletions.
2 changes: 1 addition & 1 deletion dist/chablis.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/chablis.min.js.map

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chablis",
"version": "1.0.9",
"version": "1.0.10",
"description": "A mobile first frontend framework made with wine",
"main": "dist/chablis.min.js",
"scripts": {
Expand Down
30 changes: 17 additions & 13 deletions src/components/ProgressBar/Bar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,43 @@ const Bar = styled.span`
margin-right: 0.6%;
position: relative;
@media(min-width: 769px) {
@media (min-width: 769px) {
margin-right: 0.2%;
}
:nth-child(1) {
&:nth-child(1) {
background-color: ${colors.standard.orange_1};
border-top-left-radius: ${sizes.RADIUS};
border-bottom-left-radius: ${sizes.RADIUS};
}
:nth-child(2) {
&:nth-child(2),
&:nth-child(3),
&:nth-child(4),
&:nth-child(5) {
background-color: ${colors.standard.orange_2};
opacity: 0.2;
}
:nth-child(3) {
background-color: ${colors.standard.orange_3};
opacity: 0.2;
&:nth-child(2) {
background-color: ${colors.standard.orange_2};
}
:nth-child(4) {
background-color: ${colors.standard.orange_4};
opacity: 0.2;
&:nth-child(3) {
background-color: ${colors.standard.orange_3};
}
:nth-child(5) {
background-color: ${colors.standard.orange_5};
&:nth-child(4) {
background-color: ${colors.standard.orange_4};
}
&:nth-child(5) {
background-color: ${colors.standard.orange_5};
border-top-right-radius: ${sizes.RADIUS};
border-bottom-right-radius: ${sizes.RADIUS};
opacity: 0.2;
}
:nth-child(-n+${({ active }) => active}) {
&:nth-child(-n + ${({ active }) => active}) {
opacity: 1;
}
`;
Expand Down
20 changes: 10 additions & 10 deletions src/components/ProgressBar/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ exports[`ProgressBar Should activate specific active tags 1`] = `
>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
</div>
</div>
Expand All @@ -54,23 +54,23 @@ exports[`ProgressBar Should render the component 1`] = `
>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
<span
active={3}
className="sc-jrcSnH gNZZvb"
className="sc-jrcSnH dMEgbk"
/>
</div>
</div>
Expand Down

0 comments on commit 7710649

Please sign in to comment.