Update following review

This commit is contained in:
Yosi Levy 2022-05-10 19:31:23 +03:00
parent f09c842981
commit 7db28c0156
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export class HaFab extends Fab {
static override styles = Fab.styles.concat([
css`
.mdc-fab--extended .mdc-fab__icon {
margin-left: var(--rtl-12px, calc(12px - 20px)) !important;
margin-left: var(--rtl-12px, -8px) !important;
margin-right: var(--rtl--8px, 12px) !important;
}
`,

View File

@ -192,10 +192,10 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
// apply custom properties used to fix RTL appearance throughout the system
this.style.setProperty("--rtl-12px", "12px");
this.style.setProperty("--rtl--8px", "-8px");
this.style.setProperty("--rtl-dir", "rtl");
this.style.setProperty("--dir", "rtl");
} else {
// clear all custom properties (can't use "all" for this)
this.style = "";
this.style.cssText = "";
this.style.direction = "ltr";
}