[A11y] make text "required" visible in labels (#5042)

This commit is contained in:
Richard Schreiber
2025-05-05 11:40:35 +02:00
committed by GitHub
parent c53d44238c
commit f09e9590a8
2 changed files with 20 additions and 5 deletions

View File

@@ -145,10 +145,23 @@ output {
color: $brand-primary;
font-weight: bold;
}
.form-group.required .control-label:after {
content: '*';
color: $brand-primary;
.label-required {
color: $text-muted;
display: block;
font-weight: normal;
font-style: normal;
font-size: 85%;
}
.checkbox .label-required {
display: inline;
&:before {
content: " (";
}
&:after {
content: ")";
}
}
.form-control-text {
padding-top: 7px;
}