Skip to content

Commit

Permalink
feat(a11y): add semantic markup to language settings (#2812)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored May 29, 2024
1 parent 0b207c3 commit 7047968
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pages/settings/language/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const status = computed(() => {
</div>
</template>
<div p6>
<div space-y-2>
<section space-y-2>
<h2 py2 font-bold text-xl flex="~ gap-1" items-center>
{{ $t('settings.language.display_language') }}
</h2>
Expand All @@ -38,8 +38,8 @@ const status = computed(() => {
<span inline-block i-ri:information-line />
{{ $t('settings.language.how_to_contribute') }}
</NuxtLink>
</div>
<div mt4>
</section>
<section mt4>
<h2 font-bold text-xl flex="~ gap-1" items-center>
{{ $t('settings.language.post_language') }}
</h2>
Expand All @@ -52,11 +52,13 @@ const status = computed(() => {
:to="`https://${currentUser!.server}/settings/preferences/other`"
external target="_blank"
/>
</div>
<h2 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
{{ $t('settings.language.translations.heading') }}
</h2>
<SettingsTranslations />
</section>
<section>
<h2 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
{{ $t('settings.language.translations.heading') }}
</h2>
<SettingsTranslations />
</section>
</div>
</MainContent>
</template>

0 comments on commit 7047968

Please sign in to comment.