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.

Background-color: Transparent

See original GitHub issue

Is this a bug report?

Maybe?

When I’m building my project, the background-color value transparent is automatically changed to initial. I cannot really understand why and how though 😕 I need a way to disable this.

I’m using scss (with node-sass package). My browserlist:

"browserslist": [
        ">0.2%",
        "not dead",
        "not ie <= 11",
        "not op_mini all"
    ],

Expected Behavior

background-color: transparent

Actual Behavior

background-color: initial

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
romanlexcommented, Jun 6, 2019

@iamstratos Workaround: Change browserlist in your package.json

"browserslist": [
      ">0.2%",
      "not dead",
      "ie >= 11",
      "not op_mini all"
    ]
0reactions
bugzpoddercommented, Jun 14, 2019

You can always change your browserslist to support ie11. https://facebook.github.io/create-react-app/docs/supported-browsers-features

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transparent CSS background color - Stack Overflow
The CSS color name transparent creates a completely transparent color. · Using rgba or hsla color functions, that allow you to add the...
Read more >
CSS background-color property - W3Schools
The background-color property sets the background color of an element. ... transparent, Specifies that the background color should be transparent.
Read more >
background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element. ... .exampleone { background-color: transparent; } ...
Read more >
How to Set Transparent Background Color in CSS - Linux Hint
To set transparent background color in CSS, you can use the “background-color” property with rgba value and the “opacity” property.
Read more >
background-color - CSS Reference
By default, the background color is transparent, basically meaning that there is no background color. Hello World. background-color: red;. You can use one ......
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