mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Add ARIA labels on the navigation buttons (#4363)
This commit is contained in:
@@ -108,6 +108,7 @@ export function Navigation({
|
||||
<div className="flex z-10 pb-2 pl-2">
|
||||
<button
|
||||
onClick={handleScrollLeft}
|
||||
aria-label="Scroll left"
|
||||
className={cn(
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-l border-gray-20 border-r',
|
||||
{
|
||||
@@ -119,6 +120,7 @@ export function Navigation({
|
||||
</button>
|
||||
<button
|
||||
onClick={handleScrollRight}
|
||||
aria-label="Scroll right"
|
||||
className={cn(
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-r-lg',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user