Tech
A CSS triangle vanished, because one selector matched by substring
Our stylesheet contains this:
[ class *= 'bg-card' ] {
border : none !important ;
border-width : 0 !important ;
}
Cards are borderless by design, and this one rule replaced four overlapping copies that all did the same thing in different places. It is deliberate, it is documented, and the substring match is genuinely necessary: Tailwind writes opacity modifiers into the class name itself, so bg-card/90 has to be caught too, and no other utility i...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to