A11Y: correctly markup `/about` stat table headers, tweak style (#23733)

This commit is contained in:
Kris 2023-10-02 13:55:11 -04:00 committed by GitHub
parent 24aea41d89
commit 5884176174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 23 deletions

View File

@ -97,14 +97,17 @@
<h3>{{d-icon "far-chart-bar"}} {{i18n "about.stats"}}</h3>
<table class="table">
<tbody>
<thead>
<tr>
<th>&nbsp;</th>
<th>
</th>
<th>{{i18n "about.stat.last_day"}}</th>
<th>{{i18n "about.stat.last_7_days"}}</th>
<th>{{i18n "about.stat.last_30_days"}}</th>
<th>{{i18n "about.stat.all_time"}}</th>
</tr>
</thead>
<tbody>
<tr class="about-topic-count">
<td class="title">{{i18n "about.topic_count"}}</td>
<td>{{number this.model.stats.topics_last_day}}</td>

View File

@ -1,19 +1,24 @@
section.about {
margin-bottom: 40px;
margin-bottom: 3em;
h3 {
margin-bottom: 15px;
margin-bottom: 1em;
display: flex;
align-items: center;
.d-icon {
margin-right: 0.5em;
color: var(--primary-high);
}
}
table {
width: auto;
td {
padding: 10px;
}
td.title {
width: 33%;
&.stats {
table {
td {
padding: 0.67em;
&:not(:first-child) {
text-align: center;
}
}
}
}
}

View File

@ -317,16 +317,16 @@ en:
our_moderators: "Our Moderators"
moderators: "Moderators"
stat:
all_time: "All Time"
last_day: "Last 24 hours"
last_7_days: "Last 7 days"
last_30_days: "Last 30 days"
all_time: "All time"
last_day: "24 hours"
last_7_days: "7 days"
last_30_days: "30 days"
like_count: "Likes"
topic_count: "Topics"
post_count: "Posts"
user_count: "Sign-Ups"
active_user_count: "Active Users"
contact: "Contact Us"
user_count: "Sign-ups"
active_user_count: "Active users"
contact: "Contact us"
contact_info: "In the event of a critical issue or urgent matter affecting this site, please contact us at %{contact_info}."
bookmarked:

View File

@ -24,9 +24,9 @@ en:
name: "Chat message event"
details: "When a chat message is created, edited, trashed or restored."
about:
chat_messages_count: "Chat Messages"
chat_channels_count: "Chat Channels"
chat_users_count: "Chat Users"
chat_messages_count: "Chat messages"
chat_channels_count: "Chat channels"
chat_users_count: "Chat users"
chat:
deleted_chat_username: deleted