Skip to content

Commit

Permalink
Block Directory: Use semantic element for block heading (#22713)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored May 29, 2020
1 parent f979b09 commit a5cfd79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ export function DownloadableBlockHeader( {
) }

<div className="block-directory-downloadable-block-header__column">
<span
role="heading"
className="block-directory-downloadable-block-header__title"
>
<h2 className="block-directory-downloadable-block-header__title">
{ title }
</span>
</h2>
<BlockRatings rating={ rating } ratingCount={ ratingCount } />
</div>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
display: flex;
flex-direction: column;
flex-grow: 1;

.block-directory-downloadable-block-header__title {
font-weight: 600;
margin-left: 12px;
}
.block-directory-block-ratings {
margin-left: 12px;
}
padding-left: $grid-unit-15;
}
}

.block-directory-downloadable-block-header__title {
margin: 0;
font-size: $default-font-size;
color: currentColor;
}

0 comments on commit a5cfd79

Please sign in to comment.