Skip to content

bug: .prose .btn underline regression #4192

Description

@DanConwayDev

Reproduction URL (Required)

https://play.tailwindcss.com/AUiVLvuEBw?file=css

What version of daisyUI are you using?

v5.3

Which browsers are you seeing the problem on?

All browsers

Describe your issue

regression introduced in v5.3, specifically 5044a3f, for

<div class="prose">
  <a href="#" class="btn">primary</a>
</div>

as now

.prose {
    :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
        color: var(--tw-prose-links);
        text-decoration: underline;
        font-weight: 500;
    }
}

takes precedent over

.prose .btn { text-decoration-line: none;}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions