Skip to content

Commit

Permalink
Merge pull request #1003 from OutSystems/ROU-11384
Browse files Browse the repository at this point in the history
ROU-11384: Adding new css variables to control progress animation speed
  • Loading branch information
rugoncalves authored Dec 2, 2024
2 parents ac07433 + ea93c2d commit ee060ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

&.animate {
&-entrance .osui-progress-bar__value:before {
transition-delay: 0.5s;
transition-delay: var(--progress-initial-speed, 0.5s);
}
&-entrance,
&-progress-change {
.osui-progress-bar__value:before {
transition-duration: 0.35s;
transition-duration: var(--progress-speed, 0.35s);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
&.animate {
&-entrance,
&-progress-change {
transition-duration: 0.35s;
transition-duration: var(--progress-speed, 0.35s);
}

&-entrance {
transition-delay: 0.5s;
transition-delay: var(--progress-initial-speed, 0.5s);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/OSFramework/OSUI/Pattern/Progress/ProgressEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ namespace OSFramework.OSUI.Patterns.Progress.ProgressEnum {
ProgressColor = '--progress-color',
ProgressValue = '--progress-value',
ProgressGradient = '--progress-gradient',
ProgressInitialSpeed = '--progress-initial-speed',
ProgressSpeed = '--progress-speed',
Shape = '--shape',
Thickness = '--thickness',
TrailColor = '--trail-color',
Expand Down

0 comments on commit ee060ac

Please sign in to comment.