Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@norrisng-bc
Copy link
Contributor

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

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

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)

@github-actions
Copy link

github-actions bot commented May 2, 2024

Coverage Report (Application)

Totals Coverage
Statements: 70.67% ( 53 / 75 )
Methods: 62.5% ( 5 / 8 )
Lines: 81.63% ( 40 / 49 )
Branches: 44.44% ( 8 / 18 )

@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented May 2, 2024

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.

@github-actions
Copy link

github-actions bot commented May 2, 2024

Coverage Report (Frontend)

Totals Coverage
Statements: 19.28% ( 702 / 3641 )
Methods: 18.56% ( 134 / 722 )
Lines: 23.18% ( 489 / 2110 )
Branches: 9.77% ( 79 / 809 )

v-tooltip.bottom="`${props.labelText} Share`"
class="p-button-lg p-button-text primary"
aria-label="`${props.labelText} Share`"
aria-label="Object share"
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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

@norrisng-bc norrisng-bc force-pushed the chore/objecttable-accessibility branch from 35b4561 to b9257b9 Compare May 3, 2024 00:24
@TimCsaky TimCsaky merged commit b3a38f1 into master May 3, 2024
@norrisng-bc norrisng-bc deleted the chore/objecttable-accessibility branch May 6, 2024 17:17
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.

4 participants