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

fix(rtl): enable ltr default, rtl selectors #16987

Merged
merged 19 commits into from Jan 15, 2019
Merged

fix(rtl): enable ltr default, rtl selectors #16987

merged 19 commits into from Jan 15, 2019

Conversation

adamdbradley
Copy link
Contributor

No description provided.

@ionitron-bot ionitron-bot bot added the package: core @ionic/core package label Jan 7, 2019
@abennouna
Copy link
Contributor

abennouna commented Jan 8, 2019

I thought RTL styles won't be included by default anymore?

An idea would be to put them in an optional CSS file.

Sorry if I misunderstood :-)

@adamdbradley
Copy link
Contributor Author

@abennouna With shadow dom it's proving to be challenging to have an optional css file for RTL, since certain parts of the components would not be able to easily know the dir attribute. Doable, but opens up many other issues trying to try that way. We're trying out a few different options, and right now looking into CSS Logical Properties https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties

Would you be able to pull down this branch and test it out?

core/src/themes/ionic.mixins.scss Outdated Show resolved Hide resolved
}
-webkit-padding-start: $start;
padding-inline-start: $start;
-webkit-padding-end: $end;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-webkit-padding-end: $end;
-webkit-#{$prop}-end: $end;

abennouna and others added 7 commits January 8, 2019 13:42
Co-Authored-By: adamdbradley <adamdbradley@users.noreply.github.com>
Co-Authored-By: adamdbradley <adamdbradley@users.noreply.github.com>
Co-Authored-By: adamdbradley <adamdbradley@users.noreply.github.com>
Co-Authored-By: adamdbradley <adamdbradley@users.noreply.github.com>
@mohamedsharaf
Copy link

i see greate work both of you making here
@abennouna @adamdbradley

@adamdbradley adamdbradley merged commit c2fe917 into master Jan 15, 2019
@adamdbradley adamdbradley deleted the rtl branch January 15, 2019 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants