I do not like to use !important
on CSS. But unfortunately I have a situation where I cannot ignore it. Do you know how to overcome such situations?
e.g. I need to use this on a number of Ionic pages.
.font-bold {
font-weight: bold;
}
If I'll use this on each and every page then I do not need !important
. But the above kind of code violates DRY principal.
To follow DRY I can do this:
global.scss
.font-bold {
font-weight: bold !important;
}
So how Can I follow DRY and without using !important
on the Ionic 5 app?