Tailwindcss ignoring [attribute=value] Selector

Viewed 429

In my tailwind file I have lines like

@layer utilities {
...
  li[aria-disabled='true'],
  li[aria-disabled='true'] > div {
    @apply pointer-events-none select-none opacity-50 !important;
  }
}

The same class not getting built in production. what could be the reason?

No, I have no other mechanisms to add class to the same li as it generated from another plugin.

0 Answers
Related