Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve invoice pages for accessibility testing #5452

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

TChukwuleta
Copy link
Contributor

This is an improvement on some of the copy text to aid accessibility. #4986

@@ -105,13 +105,17 @@
<span class="text-nowrap">@Model.LastRefreshed.ToString("g")</span>
</div>
<div class="d-flex align-items-center only-for-js gap-3 my-3">
<button type="button" class="btn btn-link fw-semibold d-print-none p-0" id="copyLink">
<button type="button" class="btn btn-link fw-semibold d-print-none p-0" id="copyLink" aria-label="Copy Link">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why these instances need an extra label, when the element content is just that text.

@@ -31,7 +31,7 @@
"payment_received": "Payment Received",
"payment_received_body": "Your payment has been received and is now processing.",
"payment_received_confirmations": "Once your payment has received {{requiredConfirmations}} confirmations on the {{cryptoCode}} blockchain, your invoice will be settled.",
"invoice_paid": "Invoice Paid",
"invoice_paid": "Invoice Paid Successfully",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't change those texts and say they are clear enough. Otherwise we'd have to adapt many more places.

@@ -211,19 +211,24 @@
<h3 class="mb-3">General Information</h3>
<table class="table mb-0">
<tr>
<th>Store</th>
<th scope="row">Store</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does defining the scope help here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, I know that defining scope makes it easier for screen readers to understand the relationship between the header and the subsequent data, thereby creating a more structure description when being read. Felt it can come in handy here since we are dealing with accessibility testing.

@@ -180,7 +180,7 @@
</div>
</div>
<div class="buttons" v-if="srvModel.receiptLink || storeLink || isModal">
<a v-if="srvModel.receiptLink" class="btn btn-primary rounded-pill w-100" :href="srvModel.receiptLink" :target="isModal ? '_top' : null" v-t="'view_receipt'" id="ReceiptLink"></a>
<a v-if="srvModel.receiptLink" class="btn btn-primary rounded-pill w-100" :href="srvModel.receiptLink" :target="isModal ? '_top' : null" v-t="'view_receipt'" id="ReceiptLink" role="button" aria-label="View Receipt"></a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here aria-label would need to be :aria-label="$t('view_receipt')" to have it translated as well, but I'm not sure if or why we have to repeat the element content here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted. Would update.

@dstrukt
Copy link
Member

dstrukt commented Mar 7, 2024

This PR still being worked on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility Testing: Paid Invoice, Pull Payment, Create Invoice: Tested on Windows
3 participants