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

fix(platform): table empty cell screenreader text #11608

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

mikerodonnell89
Copy link
Member

fixes #11596

@mikerodonnell89 mikerodonnell89 self-assigned this Mar 20, 2024
Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for fundamental-ngx ready!

Name Link
🔨 Latest commit 0d81eda
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/65fc7be9629d640008429950
😎 Deploy Preview https://deploy-preview-11608--fundamental-ngx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Mar 20, 2024

Visit the preview URL for this PR (updated for commit 0d81eda):

https://fundamental-ngx-gh--pr11608-fix-11596-ng15-tq8ttxeu.web.app

(expires Sun, 24 Mar 2024 18:34:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 41b993ee8e451bd7c6770b342ce142dc886eacff

@droshev droshev added the ng15 Angular 15 support label Mar 21, 2024
@@ -156,7 +156,7 @@

<ng-container *ngIf="row.state === 'readonly'; else editModeCell">
<span
*ngIf="(row.value | valueByPath : column.key) === '' || (row.value | valueByPath : column.key) === null"
*ngIf="tableTextContainer.innerText.trim() === ''"
Copy link
Contributor

Choose a reason for hiding this comment

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

innerText is undefined in JSDom, hence issues with unit tests, you either need to fix unit tests with mocking element innerText or do this differently

Copy link
Contributor

Choose a reason for hiding this comment

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

Plus, relying on object's(tableTextContainer) property in OnPush component will not work always in a best manner. There might be glitches between the detection cycles

Copy link
Member Author

Choose a reason for hiding this comment

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

"There might be glitches between the detection cycles"

Agreed but this will not be an issue for screenreader users who click or keyboard navigate to this cell, which is what this issue is addressing

@droshev droshev self-requested a review March 21, 2024 18:44
Copy link
Contributor

@droshev droshev left a comment

Choose a reason for hiding this comment

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

Let's take the time and come up with a fix that doesn't affect change detection

@droshev droshev merged commit dbdaa51 into ng-15-downport Mar 25, 2024
19 checks passed
@droshev droshev deleted the fix/11596-ng15 branch March 25, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ng15 Angular 15 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants