Closed
Description
Describe the problem:
When I create a .button
class and .button-yellow
that extends .button
, as soon as I add focus:
to .button
class, TailwindCSS removes padding. Moving focus:
to .button-yellow
class fixes it. Why?
I would expect focus:
to work either way.
Error - no padding:
.button {
@apply rounded-xl px-6 py-2 hover:text-white focus:border-opacity-100;
}
.button-yellow {
@apply button bg-yellow-600 text-gray-200;
}
Good - padding is in:
.button {
@apply rounded-xl px-6 py-2 hover:text-white;
}
.button-yellow {
@apply button bg-yellow-600 text-gray-200 focus:border-opacity-100;
}
Link to a minimal reproduction:
Metadata
Metadata
Assignees
Labels
No labels