Repository navigation
Fix 15389: [Suggestion] Shorten ToggleSwitch state-transition animations - #15390
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change reducing ToggleSwitch animation duration from 300 ms to 150 ms.
No open issues 🎉
What changed in this PR
Addresses #15389 by shortening animations for CheckBox and RadioButton controls using ToggleSwitch appearance, providing faster visual feedback.
Changes:
- Reduces the shared animation duration from 300 ms to 150 ms, affecting state, hover, and focus transitions without changing animation logic.
| File | Description |
|---|---|
src/System.Windows.Forms/System/Windows/Forms/Rendering/CheckBox/AnimatedToggleSwitchRenderer.cs |
Halves the ToggleSwitch animation duration to 150 ms. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15390 +/- ##
=============================================
Coverage 39.79260% 39.79260%
=============================================
Files 246 246
Lines 9836 9836
Branches 1036 1036
=============================================
Hits 3914 3914
Misses 5741 5741
Partials 181 181
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
28523c5 to
aec88f6
Compare
KlausLoeffelmann
left a comment
There was a problem hiding this comment.
We should try to get this in for patching today, also...
This is an A11Y issue, particularly the long Button transition.
This is already included in #15386 |
Fixes #15389
Proposed changes
Customer Impact
Applications using these renderers will display shorter ToggleSwitch transitions, CheckBox and RadioButton glyph animations, and button background-color transitions, making visual feedback feel more immediate.
No application code changes are required. The changes affect visual animation timing only; control layout, sizing, logical checked-state behavior, and event semantics remain unchanged.
Regression?
Risk
Screenshots
Before
Before.mp4
After
After.mp4
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow