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/domain search box writing direction #5649

Merged
merged 3 commits into from
May 30, 2016

Conversation

coreh
Copy link
Contributor

@coreh coreh commented May 27, 2016

This fixes #5520, by introducing an option to force the direction of the search field.

I believe this is the expected interaction for this type of field, but I need someone from I18n more used to the RTL interaction to confirm this is correct. (Especially the placeholder.)

screen shot 2016-05-27 at 19 13 53

screen shot 2016-05-27 at 19 14 34

I used a dir field to be consistent with the HTML conventions, and some CSS trickery with classes and :not() rules. This was needed because :dir() is not yet widely implemented) and [dir="ltr"] would require me to add support for that attribute on all involved components, including Gridicon, and I didn't want to mess with that.

In the long term once browsers support :dir() that should make the code way cleaner and more correct.

@coreh coreh added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. i18n [Feature] Signup & Account Creation All screens and flows for making a new WordPress.com account. labels May 27, 2016
@coreh
Copy link
Contributor Author

coreh commented May 27, 2016

cc @rachelmcr

@yoavf
Copy link
Contributor

yoavf commented May 29, 2016

👍 LGTM - I would have probably just set the text field and leave the icons as is, but this is a much more complete solution. Thanks! :)

@yoavf yoavf added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 29, 2016
@coreh coreh merged commit 2a5aeb4 into master May 30, 2016
@coreh coreh deleted the fix/domain-search-box-writing-direction branch May 30, 2016 15:07
@coreh coreh restored the fix/domain-search-box-writing-direction branch May 31, 2016 17:47
@lancewillett lancewillett deleted the fix/domain-search-box-writing-direction branch June 1, 2016 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Signup & Account Creation All screens and flows for making a new WordPress.com account. i18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signup: "Enter a domain or keyword" field has wrong orientation for RTL languages
3 participants