Skip to content

Commit

Permalink
fix: H1 semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
tblivet committed Jun 23, 2023
1 parent 403b997 commit 8a4c986
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 18 deletions.
4 changes: 0 additions & 4 deletions src/scss/custom/components/category/_header.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
$component-name: block-category;

.#{$component-name} {
h1 {
font-size: 2rem;
}

#category-description {
font-size: 1rem;
color: var(--bs-gray-800);
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/active_filters.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*}
<section id="js-active-search-filters" class="{if $activeFilters|count}active_filters{else}hide{/if}">
{block name='active_filters_title'}
<h1 class="h6 {if $activeFilters|count}active-filter-title{else}d-block d-sm-none{/if}">{l s='Active filters' d='Shop.Theme.Global'}</h1>
<h1 class="sixth-title {if $activeFilters|count}active-filter-title{else}d-block d-sm-none{/if}">{l s='Active filters' d='Shop.Theme.Global'}</h1>
{/block}

{if $activeFilters|count}
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/miniatures/category.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
>
</a>

<h1 class="h4">
<h1 class="fourth-title">
<a href="{$category.url}">{$category.name}</a>
</h1>

Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/listing/product-list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{block name='content'}

{block name='product_list_header'}
<h1 id="js-product-list-header" class="h1 mb-4">{$listing.label}</h1>
<h1 id="js-product-list-header" class="second-title mb-4">{$listing.label}</h1>
{/block}

{hook h="displayHeaderCategory"}
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/listing/search.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{/block}

{block name='product_list_header'}
<h1 id="js-product-list-header" class="h4">
<h1 id="js-product-list-header" class="fourth-title">
{if empty($smarty.get.s)}
{l s='Nothing to search for' d='Shop.Theme.Catalog'}
{else}
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<div class="product__col col-lg-6 col-xl-5">
{block name='product_header'}
<h1 class="h4 product__name">{block name='page_title'}{$product.name}{/block}</h1>
<h1 class="fourth-title product__name">{block name='page_title'}{$product.name}{/block}</h1>
{/block}

{block name='product_prices'}
Expand Down
4 changes: 2 additions & 2 deletions templates/checkout/_partials/steps/checkout-step.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
role = "tabpanel"
>
<div class="step__title js-step-title">
<h1 class="step__title-left h3">
<p class="step__title-left third-title">
{$title}
</h1>
</p>
<hr />
</div>

Expand Down
4 changes: 2 additions & 2 deletions templates/checkout/_partials/steps/unreachable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
{block name='step'}
<section class="step step--unreachable d-none" id="{$identifier}">
<div class="step__title js-step-title">
<h1 class="step__title-left h3">
<p class="step__title-left third-title">
{$title}
</h1>
</p>
</div>
</section>
{/block}
2 changes: 1 addition & 1 deletion templates/checkout/cart.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="cart-grid row">
<!-- Left Block: cart product informations & shpping -->
<div class="cart-grid__body col-lg-8">
<h1 class="h4">{l s='Shopping Cart' d='Shop.Theme.Checkout'}</h1>
<h1 class="fourth-title">{l s='Shopping Cart' d='Shop.Theme.Checkout'}</h1>

<!-- cart products detailed -->
<div class="cart-container mb-3">
Expand Down
2 changes: 1 addition & 1 deletion templates/components/page-title-section.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
{$componentName = 'page-title-section'}

{block name='page_title_section'}
<h1 class="{$componentName} mb-4">{$title}</h1>
<h1 class="{$componentName} second-title mb-4">{$title}</h1>
{/block}
2 changes: 1 addition & 1 deletion templates/customer/page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{block name='page_header_container'}
{block name='page_title'}
<div class="page-header">
<h1 class="h4">{$smarty.block.child}</h1>
<h1 class="fourth-title">{$smarty.block.child}</h1>
</div>
{/block}
{block name='account_link'}
Expand Down
2 changes: 1 addition & 1 deletion templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{block name='page_header_container'}
{block name='page_title' hide}
<header class="page-header">
<h1>{$smarty.block.child}</h1>
<h1 class="first-title">{$smarty.block.child}</h1>
</header>
{/block}
{/block}
Expand Down
2 changes: 1 addition & 1 deletion templates/page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{block name='page_header_container'}
{block name='page_title'}
<div class="page-header">
<h1 class="h4">{$smarty.block.child}</h1>
<h1 class="fourth-title">{$smarty.block.child}</h1>
</div>
{/block}
{/block}
Expand Down

0 comments on commit 8a4c986

Please sign in to comment.