Looking for a solution using the element+element-Selector to modify CSS for an element following a button.
This code snippet functions in Chrome, Edge, and Firefox but not Safari on MacOS:
.button:focus+.change{
color: red;
}
<p>When you focus the button, the text color should change to red.</p>
<button class="button">click me</button>
<div class="change">Change color</div>
Any suggestions on how to resolve this issue?
Appreciate your assistance.