fix alignment of switches positioned absolutely#3812
Conversation
|
Although this fixes it, I rather have us figure out how |
|
I couldn't figure that out |
|
It is the ripple directive: You can prevent it by putting the position inline, saves an override with |
|
Seems like the google and alexa entities pages are also affected with some styling issues |
|
I think the easier trick is to just wrap the switches in a div, position absolute the div. Overriding the position means the ripple will not work. |
|
I tried it, and the ripple seemed to work fine, this behavior has changed in a recent update of |
|
I still prefer to wrap it, if ripple expects |
|
So I would make my own render with the outside div and pass all properties to the inner mwc-switch? |
|
No, you just add a div to the switches that are absolute positioned now: <div class="position-absolute-class">
<ha-switch></ha-switch>
</div> |
|
I think that's present anywhere there is text after the switch, like editors as well... |
|
OK, so it does have a slot, but no styling? I guess we have to add some styling to the slot. |

closes #3810