Skip to content

Commit 4e7ace7

Browse files
authored
Merge pull request #3069 from IntersectMBO/chore/3065-formatting-governace-action-details-page-for-accessibility
chore(#3065): improve accessibility by changing header components in delegation and voting cards
2 parents 64b81ed + 7b8bed5 commit 4e7ace7

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ changes.
2020

2121
### Changed
2222

23+
- Change drep details and governance action header components to follow accessibility standards [Issue 3065](https://github.com/IntersectMBO/govtool/issues/3065)
24+
2325
### Removed
2426

2527
## [v2.0.12](https://github.com/IntersectMBO/govtool/releases/tag/v2.0.12) 2025-02-21

govtool/frontend/src/components/molecules/DataMissingHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const DataMissingHeader = ({
7575
...titleStyle,
7676
}}
7777
variant="title2"
78+
component="h1"
7879
>
7980
{(isDataMissing &&
8081
getMetadataDataMissingStatusTranslation(

govtool/frontend/src/components/molecules/GovernanceActionCardElement.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export const GovernanceActionCardElement = ({
172172
>
173173
<Box sx={{ display: "flex", alignItems: "center", mb: "4px" }}>
174174
<Typography
175+
component="h2"
175176
sx={{
176177
fontSize: isSliderCard ? 12 : 14,
177178
fontWeight: isSliderCard ? 500 : 600,

govtool/frontend/src/components/organisms/DRepDetailsCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ const DRepDetailsInfoItem = ({
329329
fontWeight={600}
330330
variant="body2"
331331
data-testid={`${dataTestId}-${dataTestIdInfoItemCategoryPrefix}-title`}
332+
component="h2"
332333
>
333334
{label}
334335
</Typography>
@@ -409,7 +410,9 @@ const ReferencesLink = ({ label, uri }: ReferenceItem) => (
409410
},
410411
}}
411412
>
412-
<Typography fontWeight={400}>{label}</Typography>
413+
<Typography fontWeight={400} component="h2">
414+
{label}
415+
</Typography>
413416
<Link
414417
data-testid={`${testIdFromLabel(label)}-link`}
415418
href={uri}

0 commit comments

Comments
 (0)