Skip to content

Commit

Permalink
fix: (CXSPA-8156) add landmark for checkout delivery address section
Browse files Browse the repository at this point in the history
  * add a landmark for checkout delivery address component to get a 'new address button' associated with an appropriate content.

  * add an aria-describedby attribute to 'new address button' to get it narrated in Voice Over.

  * closes https://jira.tools.sap/browse/CXSPA-8156
  • Loading branch information
StanislavSukhanov committed Oct 16, 2024
1 parent 894a0a5 commit 42b599d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section [attr.aria-labelledby]="'shipping-address-header'">
<section [attr.aria-labelledby]="'shipping-address-title'">
<h2
id="shipping-address-header"
id="shipping-address-title"
class="cx-checkout-title d-none d-lg-block d-xl-block"
>
{{ 'checkoutAddress.shippingAddress' | cxTranslate }}
Expand Down Expand Up @@ -30,6 +30,7 @@
<div class="cx-checkout-btns cx-checkout-btns-top">
<button
class="btn btn-block btn-secondary"
[attr.aria-describedby]="'shipping-address-title'"
(click)="showNewAddressForm()"
>
{{ 'checkoutAddress.addNewAddress' | cxTranslate }}
Expand Down

0 comments on commit 42b599d

Please sign in to comment.