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

Border radius not applying to mod-card in panel mode #369

Open
4 tasks done
jeremynoesen opened this issue Mar 30, 2024 · 3 comments
Open
4 tasks done

Border radius not applying to mod-card in panel mode #369

jeremynoesen opened this issue Mar 30, 2024 · 3 comments

Comments

@jeremynoesen
Copy link

jeremynoesen commented Mar 30, 2024

My Home Assistant version: 2024.4.0b3

My lovelace configuration method (GUI or yaml): GUI

What I am doing: Using a theme, I am applying a border radius to all cards in a panel view.

What I expected to happen: All cards should have said border radius.

What happened instead: Cards placed within a mod card do not have the border radius, and instead have a 0px border radius.

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
# No border radius
views:
  - type: panel
    path: default
    icon: ''
    theme: test
    cards:
      - type: custom:mod-card
        card:
          type: vertical-stack
          cards:
            - type: button
              icon: mdi:ab-testing
            - type: button
              icon: mdi:ab-testing

# Border radius present
views:
  - type: panel
    path: default
    icon: ''
    theme: test
    cards:
      - type: vertical-stack
        cards:
          - type: button
            icon: mdi:ab-testing
          - type: button
            icon: mdi:ab-testing

# Theme
test:
  ha-card-border-radius: 28px
# End of code

Error messages from the browser console:


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

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

@mcv93us
Copy link

mcv93us commented Apr 6, 2024

Same problem for me also with version 2024.4.1 of Home Assistant.

@ildar170975
Copy link
Contributor

ildar170975 commented Apr 6, 2024

2024.4.1
3.4.3

What am I missing here?

I see, this is related to the recent change in 2024.4 about "do not show round corners in panel mode".
home-assistant/frontend#20122
home-assistant/frontend#20135
home-assistant/frontend#20264

Suggest to mention "panel layout" in the issue's title.

@jeremynoesen jeremynoesen changed the title Border radius not applying to mod-card Border radius not applying to mod-card in panel mode Apr 7, 2024
@e46lux
Copy link

e46lux commented Apr 10, 2024

I've resolved mine with the following: lovelace-layout-card#284#issuecomment-2048424148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants