thomasloven / lovelace-slider-entity-row

🔹 Add sliders to entity cards
MIT License
821 stars 130 forks source link

rtl direction appears to be broken #297

Open RoboMagus opened 8 months ago

RoboMagus commented 8 months ago

My Home Assistant version: 2024.2.1 (I believe this was still working prior to the Feb update, but unsure)

My lovelace configuration method (GUI or yaml): Yaml

What I am doing: Inverting the render direction of a slider

What I expected to happen: The slider to show Right to Left. E.g.: image

What happened instead: It stays Left to Right

Minimal steps to reproduce:

  - entity: cover.livingroom_curtain_front_right
    name: rechts
  - entity: cover.livingroom_curtain_front_right_inverted
    type: custom:slider-entity-row
    full_row: true
    hide_state: true
    step: 5
    dir: rtl

Error messages from the browser console: None

Resulting HTML: (Note that dir here states ltr instead of rtl)

<div class="wrapper">
      <!--?lit$654776852$-->
            <!--?lit$654776852$-->
            <ha-slider labeled="" pin="" ignore-bar-touch="" dir="ltr" class="full" role="presentation"></ha-slider>
      <!--?lit$654776852$-->
      <!--?lit$654776852$-->
</div>

image


By putting an X in the boxes ([X]) below, I indicate that I:

RoboMagus commented 6 months ago

It appears that this change overrides the ha-slider direction that's set by the slider-entity-row config.