-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Given
<button class="rounded-lg p-4 inline-block p-0 default ripple">No?</button>which has a conflicting className: p-4 and p-0
Expected
The button should have a padding of 0, following the CSS rules, i.e. the one that's defined later takes precedence.
Actual
The button has a padding of 4 (p-4 is taking effect).
Side notes
Interestingly, if I swap the class name position from Chrome devtools, i.e.
<button class="rounded-lg p-0 inline-block p-4 default ripple">No?</button>The button still has a padding of 4.
Is this the expected behavior?
tim-phillips, dorianmariecom, jeffdaley, harshilsharma63, hgtesta and 22 morehaizzten and febeling
Metadata
Metadata
Assignees
Labels
No labels