fix aria labels for plans, descriptions

This commit is contained in:
mchouliara 2024-09-30 15:28:12 +03:00
parent f87d47e72e
commit 060cce64c2
13 changed files with 28 additions and 24 deletions

View File

@ -1,5 +1,5 @@
<div class="description-card"> <div class="description-card">
<a [routerLink]="getItemLink()" class="pointer" [attr.aria-label]="'ALT-TEXT.OPEN-DESCRIPTION-OVERVIEW' | translate"> <a [routerLink]="getItemLink()" class="pointer" [attr.aria-label]="('ALT-TEXT.OPEN-DESCRIPTION-OVERVIEW-FOR' | translate) + ' ' + description?.label">
<div class="d-flex flex-direction-row flex-wrap"> <div class="d-flex flex-direction-row flex-wrap">
<div class="col-auto description-label">{{'DESCRIPTION-LISTING.DESCRIPTION' | translate}}</div> <div class="col-auto description-label">{{'DESCRIPTION-LISTING.DESCRIPTION' | translate}}</div>
<div class="col-auto ml-auto"> <div class="col-auto ml-auto">

View File

@ -1,5 +1,9 @@
<div class="plan-card"> <div class="plan-card">
<a [routerLink]="isPublic ? this.routerUtils.generateUrl(['/explore-plans/overview/public/', plan.id]) : this.routerUtils.generateUrl(['/plans/overview/', plan.id])" class="pointer" [attr.aria-label]="'ALT-TEXT.OPEN-PLAN-OVERVIEW' | translate"> <a
[routerLink]="isPublic ? this.routerUtils.generateUrl(['/explore-plans/overview/public/', plan.id]) : this.routerUtils.generateUrl(['/plans/overview/', plan.id])"
class="pointer"
[attr.aria-label]="('ALT-TEXT.OPEN-PLAN-OVERVIEW-FOR' | translate) + ' ' + plan?.label"
>
<div class="d-flex flex-direction-row flex-wrap"> <div class="d-flex flex-direction-row flex-wrap">
<div class="col-auto plan-label">{{ 'PLAN-LISTING.PLAN' | translate }}</div> <div class="col-auto plan-label">{{ 'PLAN-LISTING.PLAN' | translate }}</div>
<div class="col-auto ml-auto"> <div class="col-auto ml-auto">

View File

@ -2600,8 +2600,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2604,8 +2604,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2602,8 +2602,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2602,8 +2602,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",

View File

@ -2603,8 +2603,8 @@
"SELECT-OPTION": "Select an option", "SELECT-OPTION": "Select an option",
"INTERNAL-EXTERNAL-USER": "Select internal or external user", "INTERNAL-EXTERNAL-USER": "Select internal or external user",
"OPEN-FILTERS": "Open filters", "OPEN-FILTERS": "Open filters",
"OPEN-PLAN-OVERVIEW": "Open plan overview", "OPEN-PLAN-OVERVIEW-FOR": "Open plan overview for",
"OPEN-DESCRIPTION-OVERVIEW": "Open description overview", "OPEN-DESCRIPTION-OVERVIEW-FOR": "Open description overview for",
"MORE-ACTIONS": "More actions", "MORE-ACTIONS": "More actions",
"OPEN-MENU-FOR": "Open menu", "OPEN-MENU-FOR": "Open menu",
"CLOSE-RELEASE": "Close release notifications", "CLOSE-RELEASE": "Close release notifications",