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 authored 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
Original file line number Diff line number Diff line change
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.