Skip to content

Commit

Permalink
NCL-8780 Unify empty table header to use aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
DnsZhou committed Aug 22, 2024
1 parent 06fa3f2 commit db83fed
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/ArtifactsList/ArtifactsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const ArtifactsList = ({ serviceContainerArtifacts, columns = defaultColu
}}
aria-label="Expand all"
/>
{columns.includes(artifactEntityAttributes.build.id) && <Th width={10} />}
{columns.includes(artifactEntityAttributes.build.id) && <Th width={10} aria-label="Build Icon" />}
{columns.includes(artifactEntityAttributes.identifier.id) && (
<Th width={30} sort={getSortParams(sortOptions.sortAttributes['identifier'].id)}>
{artifactEntityAttributes.identifier.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ Object {
</button>
</th>
<th
aria-label="Build Icon"
class="pf-v5-c-table__th pf-m-width-10"
scope="col"
tabindex="-1"
Expand Down Expand Up @@ -1320,6 +1321,7 @@ Object {
</button>
</th>
<th
aria-label="Build Icon"
class="pf-v5-c-table__th pf-m-width-10"
scope="col"
tabindex="-1"
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfigsEditList/ConfigsAddList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const ConfigsAddList = <T extends BuildConfiguration | GroupConfiguration
{buildConfigEntityAttributes['project.name'].title}
</Th>
)}
<Th screenReaderText="Actions" />
<Th aria-label="Actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ConfigsEditList/ConfigsChangesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const ConfigsChangesList = <T extends BuildConfiguration | GroupConfigura
<Table isStriped variant="compact">
<Thead>
<Tr>
<Th screenReaderText="Added or removed icon" />
<Th aria-label="Added or removed icon" />
<Th width={60}>{buildConfigEntityAttributes.name.title}</Th>
{variant === 'Build' && <Th width={40}>{buildConfigEntityAttributes['project.name'].title}</Th>}
<Th screenReaderText="Actions" />
<Th aria-label="Actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfigsEditList/ConfigsRemoveList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const ConfigsRemoveList = <T extends BuildConfiguration | GroupConfigurat
{buildConfigEntityAttributes['project.name'].title}
</Th>
)}
<Th screenReaderText="Actions" />
<Th aria-label="Actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const ProductVersionMilestonesList = ({
<Th width={15} sort={getSortParams(sortOptions.sortAttributes.endDate.id)}>
{productMilestoneEntityAttributes.endDate.title}
</Th>
<Th screenReaderText="Actions" />
<Th aria-label="Actions" />
</Tr>
</Thead>
<Tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const ProductVersionReleasesList = ({
<Th width={20} sort={getSortParams(sortOptions.sortAttributes.supportLevel.id)}>
{productReleaseEntityAttributes.supportLevel.title}
</Th>
<Th screenReaderText="Actions" />
<Th aria-label="Actions" />
</Tr>
</Thead>
<Tbody>
Expand Down

0 comments on commit db83fed

Please sign in to comment.