Skip to content

fix(select): RTL fix for searchbar - #11355

Merged
brandyscarney merged 7 commits into
ionic-team:masterfrom
sijav:rtl-fix-searchbar
May 17, 2017
Merged

brandyscarney merged 7 commits into
ionic-team:masterfrom
sijav:rtl-fix-searchbar

Conversation

@sijav

@sijav sijav commented Apr 25, 2017 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

RTL fix for searchbar component

Changes proposed in this pull request:

  • change margin and padding dynamically based on app's direction

Ionic Version: 2.x / 3.x

Fixes: #11211

sijav added 2 commits April 25, 2017 14:37
RTL fix for searchbar component
I forgot to refrence _isRTL
Comment thread src/components/searchbar/searchbar.ts Outdated
_isActive: boolean = false;
_showCancelButton: boolean = false;
_animated: boolean = false;
_isRTL: boolean = this._plt.isRTL();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isRTL is now a variable of platform, and not a method. so instead of having, this line, and then if (this._isRTL), use:
if (this._plt.isRTL)

It will then also work on realtime direction switch.

Nice work!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks a bunch, didn't know that.

@manucorporat

Copy link
Copy Markdown
Contributor

@sijav you should be able to run gulp validate before submitting a PR, I can see several styling issues

@sijav

sijav commented Apr 25, 2017 •

Copy link
Copy Markdown
Contributor Author

@manucorporat could you address me those issues? with gulp validate and gulp lint.scss the only thing I get is Fatal undefined and nothing else, and I can't seem to find the problem.
EDIT: find out that I haven't install ruby yet :D
EDIT: I'm still getting the same result even though I've installed ruby version 2.3.3p222 (2016-11-12 rev 56859) [x64-mingw32]

@AmitMY

AmitMY commented May 5, 2017

Copy link
Copy Markdown
Contributor

@sijav Can you please remove all scss changes and only leave the ts one?
This PR - #11342 - covers the scss, and is about done

@AmitMY

AmitMY commented May 13, 2017

Copy link
Copy Markdown
Contributor

@brandyscarney Tested, works as expected on ltr & rtl (after applying this fix - #11651 on master)

(gulp e2e.watch --folder=searchbar/basic)

@brandyscarney
brandyscarney merged commit ca71072 into ionic-team:master May 17, 2017
@brandyscarney

brandyscarney commented May 17, 2017 •

Copy link
Copy Markdown
Member

Thanks for the PR @sijav, and thanks for reviewing @AmitMY. Looks good!

@sijav
sijav deleted the rtl-fix-searchbar branch May 30, 2017 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants