Skip to content

Commit

Permalink
chore(#3065): improve accessibility by changing header components in …
Browse files Browse the repository at this point in the history
…delegation and voting cards
  • Loading branch information
MSzalowski committed Feb 24, 2025
1 parent 414d8df commit 7b8bed5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ changes.

### Changed

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

### Removed

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


### Added

- Add metadata url and hash to drep details [Issue 2911](https://github.com/IntersectMBO/govtool/issues/2911)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const DataMissingHeader = ({
...titleStyle,
}}
variant="title2"
component="h1"
>
{(isDataMissing &&
getMetadataDataMissingStatusTranslation(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export const GovernanceActionCardElement = ({
>
<Box sx={{ display: "flex", alignItems: "center", mb: "4px" }}>
<Typography
component="h2"
sx={{
fontSize: isSliderCard ? 12 : 14,
fontWeight: isSliderCard ? 500 : 600,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ const DRepDetailsInfoItem = ({
fontWeight={600}
variant="body2"
data-testid={`${dataTestId}-${dataTestIdInfoItemCategoryPrefix}-title`}
component="h2"
>
{label}
</Typography>
Expand Down Expand Up @@ -409,7 +410,9 @@ const ReferencesLink = ({ label, uri }: ReferenceItem) => (
},
}}
>
<Typography fontWeight={400}>{label}</Typography>
<Typography fontWeight={400} component="h2">
{label}
</Typography>
<Link
data-testid={`${testIdFromLabel(label)}-link`}
href={uri}
Expand Down

0 comments on commit 7b8bed5

Please sign in to comment.