--keep-background removes the border & radius
See original GitHub issueChecklist:
- I updated to the latest version available
- I cleared the cache of my browser
Release with the issue: current Last working release (if known):
Browser and Operating System: Microsoft Edge (new), Firefox and Chrome
Description of problem:
The borders from the theme(s) and border-radius are not applied when I use the style:
- --keep-background: 'true'
on the ‘stacked’ custom button:card.
Javascript errors shown in the web inspector (if applicable):
Additional information:
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
How do you get rid of the corners when using border radius
I've created a view and I'm trying to make it with rounded corners so I'm using border-radius . The only problem is that...
Read more >border-radius - CSS-Tricks
The border-radius property takes between one and four length or percentage values, where one value sets the radius for all four corners at...
Read more >How to keep background image inside border-radius?
I've got a list item nav menu in which the anchors have background images and rounded corners. However, the background image is not...
Read more >border-radius - CSS: Cascading Style Sheets - MDN Web Docs
The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, ......
Read more >Background color visible through the border of a border radius
When a component uses backgroundColor and borderRadius, the background color is still visible over the edges of the border.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see, that’s how CSS works unfortunately. Your
ha-card-box-shadow
is set toinset
which means that the border is inside the card and not outside the card. Since it’s inside, any component inside the card will cover that border and this is why it happens. Not much I can do here.If you change your value to:
ha-card-box-shadow: '0px 0px 0px 1px var(--border-color)'
You’ll have the result you expect and no perceptible difference 😃Cool, problem solved. Thanks!