mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Update following review
This commit is contained in:
parent
f09c842981
commit
7db28c0156
@ -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;
|
||||
}
|
||||
`,
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user