Skip to content

Commit

Permalink
fix: define correct large size of circular #progress
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed May 20, 2019
1 parent 274f13a commit e9e6853
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Example extends PureComponent {
`}
</ComponentBox>
<ComponentBox
caption="Progress with random progress value to show the the transition"
caption="Progress with random progress value to show the transition"
noFragments={false}
>
{/* @jsx */ `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ exports[`Progress scss have to match default theme snapshot 1`] = `
/*
* Utilities
*/
.dnb-progress__circular--small {
width: 1rem;
height: 1rem; }
.dnb-progress__circular--large {
width: 3.5rem;
height: 3.5rem; }
.dnb-progress__circular--huge {
width: 20rem;
height: 20rem; }
.dnb-progress__circular__line {
animation-duration: 2s; }
Expand Down Expand Up @@ -183,15 +195,6 @@ exports[`Progress scss have to match snapshot 1`] = `
width: 2rem;
height: 2rem;
transform: rotate(-90deg); }
.dnb-progress__circular--small {
width: 1rem;
height: 1rem; }
.dnb-progress__circular--large {
width: 4rem;
height: 4rem; }
.dnb-progress__circular--huge {
width: 20rem;
height: 20rem; }
.dnb-progress__circular svg {
position: absolute;
width: 100%;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions packages/dnb-ui-lib/src/components/progress/style/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@
width: 2rem;
height: 2rem;

&--small {
width: 1rem;
height: 1rem;
}

&--large {
width: 4rem;
height: 4rem;
}

&--huge {
width: 20rem;
height: 20rem;
}

// since SVG is starting 90deg from top
transform: rotate(-90deg);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
.dnb-progress {
// circular variant
&__circular {
&--small {
width: 1rem;
height: 1rem;
}
&--large {
width: 3.5rem;
height: 3.5rem;
}
&--huge {
width: 20rem;
height: 20rem;
}

&__line {
animation-duration: 2s;
}
Expand Down

0 comments on commit e9e6853

Please sign in to comment.