JSFiddle - React, Tailwind, and code Playground

by glee

HTML

<div class = "container">
<button id="t1">Test 1</button>
<button id="t2">Test 2</button>
</div>

CSS

#t1:active ~ #t2 {
    color: red;
}
#t1:active {
    color: black !important;
}
.container:active:not(#t1) #t1 {
    color: red;
}