Skip to content

Commit

Permalink
fix(a11y): use h1 for title in hero instead of p (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jun 11, 2022
1 parent b1ff725 commit 919d230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPHero.vue
Expand Up @@ -25,8 +25,8 @@ defineProps<{
<div class="VPHero" :class="{ 'has-image': image }">
<div class="container">
<div class="main">
<p v-if="name" class="name"><span class="clip">{{ name }}</span></p>
<h1 v-if="text" class="text">{{ text }}</h1>
<h1 v-if="name" class="name"><span class="clip">{{ name }}</span></h1>
<p v-if="text" class="text">{{ text }}</p>
<p v-if="tagline" class="tagline">{{ tagline }}</p>

<div v-if="actions" class="actions">
Expand Down

0 comments on commit 919d230

Please sign in to comment.