Skip to content

Commit

Permalink
fix: Add h3 heading inside fieldset to improve accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Dec 6, 2023
1 parent 97ff2ec commit 6a280ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
name, and more. You control this content and who can see it.
</ng-container>
</p>
<h3
class="orc-font-body mat-subheading-2"
i18n="@@register.visibilityLegend"
>
Visibility settings
</h3>
<fieldset>
<legend >
<h3 class="orc-font-body mat-subheading-2" i18n="@@register.visibilityLegend">
Visibility settings
</h3>
</legend>
<p i18n="@@register.visibilityDescription3">
By default, what visibility should be given to new items added to your
ORCID Record?
Expand Down
6 changes: 5 additions & 1 deletion src/app/register2/components/register2.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ h3.margin-top-12,
margin-top: 12px;
}

h3,
legend {
margin-top: 32px;
margin-bottom: 14px;
font-weight: bold;
h3 {
margin-block-start: 0;
margin-block-end: 0;
font-weight: bold;
}
}

fieldset {
Expand Down

0 comments on commit 6a280ba

Please sign in to comment.