Skip to content

Commit

Permalink
fix(platform): table empty cell screenreader text (#11608)
Browse files Browse the repository at this point in the history
* fix(platform): table empty cell screenreader text

* fix: pr comment

---------

Co-authored-by: deno <mladen.droshev@sap.com>
  • Loading branch information
mikerodonnell89 and droshev committed Mar 25, 2024
1 parent f9d773c commit dbdaa51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const ITEMS: ExampleItem[] = [
{
id: 4,
name: 'Beam Breaker B-1',
description: 'fermentum donec ut',
description: '',
price: {
value: 36.56,
currency: 'NZD'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
(keydown.arrowRight)="_tableRowService.scrollToOverlappedCell()"
(keydown.space)="_handleCellSpaceKey(colIdx, tableCellElement, $event)"
>
<div [class.fd-table__text]="column.applyText" [class.fd-table__text--no-wrap]="column.noWrap">
<div [class.fd-table__text]="column.applyText" [class.fd-table__text--no-wrap]="column.noWrap" #tableTextContainer>
<span
*ngIf="_isTreeRowFirstCell(colIdx, row)"
class="fd-table__expand"
Expand All @@ -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() === ''"
style="
position: absolute !important;
height: 1px;
Expand Down

0 comments on commit dbdaa51

Please sign in to comment.