quasar icon indicating copy to clipboard operation
quasar copied to clipboard

CSS utils bg-* wrong implementation

Open EchoCompanyK opened this issue 5 years ago • 1 comments

The bg-* utility sets the whole background attribute with the !important flag, which causes any other background definitions (image position size etc.) to be lost.

.bg-grey
  background: $grey !important

Must set background-color:

.bg-grey
  background-color: $grey !important

EchoCompanyK avatar Mar 08 '21 06:03 EchoCompanyK

Hi,

This was a technical decision to avoid Quasar's CSS growing by 10-20KB and still cover the vast majority of use-cases. Sorry, but if you have some custom use case you will either have to write your own color classes or overwrite Quasar's. I know it's not what you want to hear.

rstoenescu avatar Mar 22 '21 01:03 rstoenescu