From 012ad5e367d97c9138887c6b3609670957ca9c14 Mon Sep 17 00:00:00 2001 From: Mark Pedrotti Date: Mon, 24 Jun 2024 09:00:00 -0400 Subject: [PATCH] ROX-24892: Fix accessibility issues in compliance clusters (#11653) --- .../platform/src/Containers/Compliance/List/SidePanel.js | 7 ++----- ui/apps/platform/src/Containers/Compliance/List/Table.js | 2 +- .../Compliance/List}/TableGroup.js | 9 +++++---- 3 files changed, 8 insertions(+), 10 deletions(-) rename ui/apps/platform/src/{Components => Containers/Compliance/List}/TableGroup.js (95%) diff --git a/ui/apps/platform/src/Containers/Compliance/List/SidePanel.js b/ui/apps/platform/src/Containers/Compliance/List/SidePanel.js index 636853ebf5949..20258c1c266e8 100644 --- a/ui/apps/platform/src/Containers/Compliance/List/SidePanel.js +++ b/ui/apps/platform/src/Containers/Compliance/List/SidePanel.js @@ -56,16 +56,13 @@ const ComplianceListSidePanel = ({ entityType, entityId, match, location, histor const headerTextComponent = (
- +
{linkText}
, @@ -63,9 +64,9 @@ class TableGroup extends Component {

{name}

-
{`${ - rows.length - } ${pluralize(this.props.entityType, rows.length)}`}
+
+ {entityCountNounOrdinaryCase(rows.length, this.props.entityType)} +
);