Skip to content
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

refactor(progressbar): Animate the value change using CSS counters and custom CSS props #1492

Merged
merged 29 commits into from
Dec 19, 2024

Conversation

desig9stein
Copy link
Contributor

closes #1441

rkaraivanov
rkaraivanov previously approved these changes Dec 3, 2024
src/components/progress/themes/animations.scss Outdated Show resolved Hide resolved
}

:host-context([dir='rtl']),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I am aware, this does not yet work in Safari and Firefox?

Copy link
Member

@rkaraivanov rkaraivanov Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They don't support it and AFAIK they have no plans to ever do. Also, it does not correctly handles auto and inherited values.

:dir is the one which should be used here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@desig9stein This should be fixed.

@@ -13,13 +13,13 @@ $theme: $bootstrap;
font-weight: 700;
}

[part~='svg'][part~='indeterminate'] {
[part='svg indeterminate'] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that these are the only parts that can be applied to this element? As soon as any other part is applied the styles will stop working.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@desig9stein This is also not addressed.

}
}

:host-context([dir='rtl']),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, if this doesn't work in all browsers, we can't rely on it.

}

:host-context([dir='rtl'])[indeterminate],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other comments.

src/components/progress/themes/shared.scss Outdated Show resolved Hide resolved
@simeonoff
Copy link
Collaborator

@desig9stein check the review comments.

- remove the --linear-animation-duration: 3000ms from fluent theme since we expos property on the component and the user is able to change the value.
rkaraivanov
rkaraivanov previously approved these changes Dec 13, 2024
}

:host-context([dir='rtl']),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@desig9stein This should be fixed.

desig9stein and others added 2 commits December 17, 2024 11:20
@simeonoff simeonoff merged commit 852b0ed into master Dec 19, 2024
5 checks passed
@simeonoff simeonoff deleted the igniteui-webcomponents-1441 branch December 19, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Change Request]: Animate the value change using CSS counters and custom CSS props
3 participants