mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-06 06:42:51 +03:00
Accessibility features (#14518)
* Add screen reader aria labels to buttons and menu items * Fix sub_label score in search detail dialog
This commit is contained in:
@@ -240,6 +240,7 @@ export default function LiveDashboardView({
|
||||
? "bg-blue-900 bg-opacity-60 focus:bg-blue-900 focus:bg-opacity-60"
|
||||
: "bg-secondary"
|
||||
}`}
|
||||
aria-label="Use mobile grid layout"
|
||||
size="xs"
|
||||
onClick={() => setMobileLayout("grid")}
|
||||
>
|
||||
@@ -251,6 +252,7 @@ export default function LiveDashboardView({
|
||||
? "bg-blue-900 bg-opacity-60 focus:bg-blue-900 focus:bg-opacity-60"
|
||||
: "bg-secondary"
|
||||
}`}
|
||||
aria-label="Use mobile list layout"
|
||||
size="xs"
|
||||
onClick={() => setMobileLayout("list")}
|
||||
>
|
||||
@@ -267,6 +269,7 @@ export default function LiveDashboardView({
|
||||
? "bg-selected text-primary"
|
||||
: "bg-secondary text-secondary-foreground",
|
||||
)}
|
||||
aria-label="Enter layout editing mode"
|
||||
size="xs"
|
||||
onClick={() =>
|
||||
setIsEditMode((prevIsEditMode) => !prevIsEditMode)
|
||||
|
||||
Reference in New Issue
Block a user