A11Y: usernames aren't a meaningful heading (#20623)

This commit is contained in:
Kris 2023-03-24 13:22:22 -04:00 committed by GitHub
parent 19b0dbe59d
commit 88004873ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -116,7 +116,7 @@
<UserProfileAvatar @user={{this.model}} @tagName="" />
<div class="primary-textual">
<div class="user-profile-names">
<h1
<div
class="{{if this.nameFirst 'full-name' 'username'}}
user-profile-names__primary"
>
@ -129,7 +129,7 @@
{{#if this.model.status}}
<UserStatusMessage @status={{this.model.status}} />
{{/if}}
</h1>
</div>
<div
class="{{if this.nameFirst 'username' 'full-name'}}
user-profile-names__secondary"

View File

@ -781,6 +781,10 @@
font-size: 0.8em;
vertical-align: baseline;
}
.user-status-message {
display: inline-flex;
vertical-align: baseline;
}
}
.user-profile-names__secondary {