-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(web-components): update switch to use margin for checked state to support RTL #29505
fix(web-components): update switch to use margin for checked state to support RTL #29505
Conversation
📊 Bundle size report🤖 This report was generated against 66952983572126c1c609a00511c5a89cadc91f28 |
@@ -0,0 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵 fluentui-web-components-v3 Open the Visual Regressions report to inspect the affected screenshots
Switch 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Switch.Checked - RTL.hover.chromium.png | 104 | Changed |
Switch.Checked - RTL.normal.chromium.png | 97 | Changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 66952983572126c1c609a00511c5a89cadc91f28 (build) |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e39e186:
|
Lgtm |
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (microsoft#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (microsoft#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (microsoft#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
… support RTL (#29505) * use margin for switch checked transition to support RTL * change files
Previous Behavior
Switch used a transform to move the indicator to the checked state which led to an issue where there wasn't immediate support for RTL.
New Behavior
This PR updates the code to leverage margin-inline-start instead which allows for this to be automatically accommodated in RTL scenarios.
Related Issue(s)