A11Y: do not skip heading levels in keyboard shortcut modal (#28285)

This commit is contained in:
Kris 2024-08-09 09:29:53 -04:00 committed by GitHub
parent 65895f44e9
commit 234e155d3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -13,9 +13,9 @@
class="shortcut-category span-{{shortcutCategory.count}}
shortcut-category-{{category}}"
>
<h4>{{i18n
<h2>{{i18n
(concat "keyboard_shortcuts_help." category ".title")
}}</h4>
}}</h2>
<ul>
{{#each-in shortcutCategory.shortcuts as |name shortcut|}}
<li>{{html-safe shortcut}}</li>

View File

@ -43,7 +43,8 @@
.shortcut-category {
border: 1px solid var(--primary-low);
h4 {
h2 {
font-size: var(--font-0);
background-color: var(--primary-very-low);
padding: 0.5rem 1rem;
}