mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add aria-label to playground header buttons
ghstack-source-id: 4fdf672f02144e550d50b17f396a5d6d82dab5bd Pull Request resolved: https://github.com/facebook/react-forget/pull/2839
This commit is contained in:
@@ -58,6 +58,7 @@ export default function Header() {
|
||||
<div className="flex items-center text-[15px] gap-4">
|
||||
<button
|
||||
title="Reset Playground"
|
||||
aria-label="Reset Playground"
|
||||
className="flex items-center gap-1 transition-colors duration-150 ease-in text-secondary hover:text-link"
|
||||
onClick={handleReset}
|
||||
>
|
||||
@@ -66,6 +67,7 @@ export default function Header() {
|
||||
</button>
|
||||
<button
|
||||
title="Copy sharable URL"
|
||||
aria-label="Copy sharable URL"
|
||||
className="flex items-center gap-1 transition-colors duration-150 ease-in text-secondary hover:text-link"
|
||||
onClick={handleShare}
|
||||
disabled={showCheck}
|
||||
|
||||
Reference in New Issue
Block a user