question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--keep-background removes the border & radius

See original GitHub issue

Checklist:

  • 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. HA-stack-in-card-border

Javascript errors shown in the web inspector (if applicable):


Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
RomRidercommented, Mar 27, 2020

I see, that’s how CSS works unfortunately. Your ha-card-box-shadow is set to inset 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 😃

0reactions
Kroontjecommented, Mar 27, 2020

Cool, problem solved. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found