From abe2700a05985d478cd53ef094080f9685a62cb4 Mon Sep 17 00:00:00 2001 From: Samuel Weirich <4281791+SamuelWei@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:40:18 +0100 Subject: [PATCH] Improve accessibly of room dashboard --- lang/en/rooms.php | 6 + resources/css/app/_room.css | 12 ++ resources/js/components/RoomCard.vue | 106 ++++++++---------- resources/js/components/RoomDetailsList.vue | 15 ++- .../js/components/RoomFavoriteButton.vue | 4 +- resources/js/components/RoomTypeBadge.vue | 7 +- resources/js/views/RoomsIndex.vue | 12 +- 7 files changed, 92 insertions(+), 70 deletions(-) diff --git a/lang/en/rooms.php b/lang/en/rooms.php index d09571019..86e3f39e7 100644 --- a/lang/en/rooms.php +++ b/lang/en/rooms.php @@ -101,7 +101,9 @@ ], 'favorites' => [ 'add' => 'Add to favorites', + 'add_for' => 'Add to favorites: :room', 'remove' => 'Remove from favorites', + 'remove_for' => 'Remove from favorites: :room', ], 'feature_disabled_roomtype' => 'This feature is disabled for this room type. Try selecting a different room type or contact the administrator.', 'feature_disabled_system' => ':name is disabled. Please contact the administrator.', @@ -162,8 +164,12 @@ 'last_ran_till' => 'Last run until :date', 'never_started' => 'Never started before', 'open' => 'Open', + 'owner' => 'Owner', + 'room_type' => 'Room type', 'running_since' => 'Running since :date', + 'short_description' => 'Short description', 'show_details' => 'Show room details', + 'show_details_for' => 'Show details for room ":room"', ], 'show_all' => 'All rooms', 'show_own' => 'Own rooms', diff --git a/resources/css/app/_room.css b/resources/css/app/_room.css index 4227e2ef9..85320c049 100644 --- a/resources/css/app/_room.css +++ b/resources/css/app/_room.css @@ -167,3 +167,15 @@ background-color: var(--p-amber-500); } } + +.room-card:focus-within { + @apply ring; +} + +.room-card:focus-within a:focus { + outline: none; +} + +.room-card:has(button:focus) { + @apply ring-0; +} diff --git a/resources/js/components/RoomCard.vue b/resources/js/components/RoomCard.vue index af48193fe..f34ab0044 100644 --- a/resources/js/components/RoomCard.vue +++ b/resources/js/components/RoomCard.vue @@ -1,59 +1,53 @@ - +