-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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(label): RTL fix for label margin #11330
Conversation
RTL fix (scss changes) for label margin for wp, ios and android platform
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.
src/components/label/label.ios.scss
Outdated
@@ -6,6 +6,9 @@ | |||
/// @prop - Margin of the label | |||
$label-ios-margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0 !default; | |||
|
|||
/// @prop - Margin of the label for RTL | |||
$label-ios-margin-rtl: $item-ios-padding-top 0 $item-ios-padding-bottom ($item-ios-padding-right / 2) !default; |
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.
Can you align the content with the rest of variables?
src/components/label/label.wp.scss
Outdated
@@ -17,6 +17,10 @@ $label-wp-text-color-focused: color($colors-wp, primary) !default; | |||
margin: $item-wp-padding-top ($item-wp-padding-right / 2) $item-wp-padding-bottom 0; | |||
} | |||
|
|||
[dir="rtl"] .label-wp { | |||
margin: $item-wp-padding-top 0 $item-wp-padding-bottom ($item-wp-padding-right / 2); |
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.
I know we missed the $label-wp-margin-rtl
, would you mind adding both?
Add prop of margin of the label.
Align the content with rest of the variable
Looks good to me. @manucorporat ? |
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.
Looks good to me!
Waiting for approval from @brandyscarney
@brandyscarney There is something weird here. Also, no, there is no current input rtl PR, all in due time :) |
@AmitMY This rule is taking precedence so it is getting |
@brandyscarney I'm doing it now, looks like one pr should be for input and another one for select and I think search-bar must change too ... |
@sijav Take a look at this. I'm letting you know, just so you don't do extra work that will be rejected if this goes in. I will keep you updated |
@AmitMY Great job! Thanks for letting me know, but we still need some support for typescript as well (searchbar for ios or sliding item component and so on) |
@brandyscarney This can be closed |
Closing this PR in favor of #11342 |
Short description of what this resolves:
RTL fix (scss changes) for label margin for wp, ios and android platform
Changes proposed in this pull request:
Ionic Version: 2.x / 3.x
Fixes: #11211