Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix(switch): invalid container margin in RTL #9586

Merged
merged 1 commit into from Sep 21, 2016

Conversation

devversion
Copy link
Member

  • The switch does not properly display in RTL mode - this is due to the recent changes to the RTL mixin, which introduced a reset value.
  • Inside of the switch the container should have a 0px reset value
Before After
image image

* The switch does not properly display in RTL mode - this is due to the recent changes to the RTL mixin, which introduced a reset value.
* Inside of the switch the container should have a 0px reset value
@devversion devversion added the needs: review This PR is waiting on review from the team label Sep 12, 2016
@clshortfuse
Copy link
Contributor

LGTM

The margin propery has a default value of 0, not auto, which is what we want here.

@@ -44,7 +44,7 @@ md-switch {
height: $switch-height;
position: relative;
user-select: none;
@include rtl-prop(margin-right, margin-left, 8px, auto);
@include rtl-prop(margin-right, margin-left, 8px, 0px);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use 0 instead of 0px (minifying CSS will do this anyway)

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Sep 13, 2016
@jelbourn jelbourn merged commit b0d9921 into angular:master Sep 21, 2016
@devversion devversion deleted the fix/switch-rtl-regressions branch September 21, 2016 15:29
Frank3K pushed a commit to Frank3K/material that referenced this pull request Oct 8, 2016
* The switch does not properly display in RTL mode - this is due to the recent changes to the RTL mixin, which introduced a reset value.
* Inside of the switch the container should have a 0px reset value
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants