-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix object share button aria-label #192
Conversation
Code Climate has analyzed commit b9257b9 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 24.5% (0.0% change). View more on Code Climate. |
@@ -283,7 +283,7 @@ onMounted(() => { | |||
<Button | |||
v-tooltip.bottom="`${props.labelText} Share`" | |||
class="p-button-lg p-button-text primary" | |||
aria-label="`${props.labelText} Share`" | |||
aria-label="Object share" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the purpose was to keep this label dynamic text, it will break AriaLabel for bucket share button, I will do some further review while doing screen reader testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tooltip text isn't dynamic, no?
The screen reader (at least on macOS) will read "props dot label text" with the original aria-label
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:aria-label="${props.labelText} share
" might work
35b4561
to
b9257b9
Compare
Description
This fixes the
aria-label
for the "object share" button for objects, so that screen readers can correctly read the button.There were no issues with the visible tooltip.
https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3653
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist
Further comments
Much of the heavy lifting for this ticket seems to have been already done in SHOWCASE-3656 and SHOWCASE-3657 (and possibly SHOWCASE-3515, when Primevue got updated to 3.52)