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

RTL fixes - cloud section, ha-formfield, some missing + (mwc-fab) #6333

Merged
merged 5 commits into from
Jul 7, 2020

Conversation

yosilevy
Copy link
Contributor

@yosilevy yosilevy commented Jul 5, 2020

Type of change

Fixes RTL issues in cloud section + missing + sign to add zones, etc'...
Fixes cross system ha-formfield RTL support.
Tested in both English and Hebrew.
More to come...

  • Bugfix (non-breaking change which fixes an issue)

  • Code quality improvements to existing code or addition of tests

  • The code change is tested and works locally.

  • There is no commented out code in this PR.

.label=${this.hass!.localize(
"ui.panel.config.cloud.google.disable_2FA"
)}
.dir="${computeRTLDirection(this.hass!)}"
Copy link
Member

Choose a reason for hiding this comment

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

If we use it multiple times in one element, we can do this on top of render:

const dir = computeRTLDirection(this.hass!);

and use that

Suggested change
.dir="${computeRTLDirection(this.hass!)}"
.dir=${dir}

.label=${this.hass!.localize(
"ui.dialogs.mqtt_device_debug_info.deserialize"
)}
.dir="${computeRTLDirection(this.hass)}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.dir="${computeRTLDirection(this.hass)}"
.dir=${computeRTLDirection(this.hass)}

@yosilevy
Copy link
Contributor Author

yosilevy commented Jul 6, 2020

Also refactored a few other places with duplicate RTL calc

@yosilevy yosilevy merged commit 65a2225 into home-assistant:dev Jul 7, 2020
@yosilevy yosilevy deleted the RTL-changes branch July 7, 2020 19:27
@bramkragten bramkragten mentioned this pull request Jul 14, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants