command-enter-disabled
Notice that you cannot trigger the alert with the enter key.
Accessible button
12345678910111213141516171819
import "./style.css";export default function Example() {return (<div><p>Notice that you cannot trigger the alert with the enter key.</p>className="button"onClick={() => alert("Accessible button clicked")}>Accessible button</div>);}import "./style.css";export default function Example() {return (<div><p>Notice that you cannot trigger the alert with the enter key.</p>className="button"onClick={() => alert("Accessible button clicked")}>Accessible button</div>);}