Skip to content

Commit

Permalink
fix(storefront): BCTHEME-143 Improper heading hierarchy on PLPs
Browse files Browse the repository at this point in the history
  • Loading branch information
BC-tymurbiedukhin committed Aug 12, 2020
1 parent 353c9c8 commit 16520c5
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}

.accordion-title {
font-size: remCalc(15px);
margin: 0;
}

Expand Down
1 change: 1 addition & 0 deletions assets/scss/layouts/sidebar/_block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}

.sidebarBlock-heading {
font-size: remCalc(15px);
margin-top: 0;
text-transform: inherit;
}
2 changes: 1 addition & 1 deletion templates/components/category/shop-by-price.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#and theme_settings.shop_by_price_visibility shop_by_price}}
<div class="sidebarBlock">
<h5 class="sidebarBlock-heading">{{lang 'category.shop_by_price'}}</h5>
<h2 class="sidebarBlock-heading">{{lang 'category.shop_by_price'}}</h2>
<ul class="navList">
{{#each shop_by_price}}
<li class="navList-item">
Expand Down
2 changes: 1 addition & 1 deletion templates/components/category/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav>
{{#if category.subcategories}}
<div class="sidebarBlock">
<h5 class="sidebarBlock-heading">{{category.name}}</h5>
<h2 class="sidebarBlock-heading">{{category.name}}</h2>
<ul class="navList">
{{#each category.subcategories}}
<li class="navList-item">
Expand Down
4 changes: 2 additions & 2 deletions templates/components/faceted-search/facets/hierarchy.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class="accordion-navigation toggleLink {{#unless ../start_collapsed }} is-open {{/unless}}"
role="button"
data-collapsible="#facetedSearch-content--{{#replace '&' (hyphenate facet) }}{{else}}{{hyphenate facet}}{{/replace}}">
<h5 class="accordion-title">
<h2 class="accordion-title">
{{ title }}
</h5>
</h2>

<div class="accordion-navigation-actions">
{{#if selected}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/faceted-search/facets/multi.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class="accordion-navigation toggleLink {{#unless ../start_collapsed }} is-open {{/unless}}"
role="button"
data-collapsible="#facetedSearch-content--{{#replace '&' (hyphenate facet) }}{{else}}{{hyphenate facet}}{{/replace}}">
<h5 class="accordion-title">
<h2 class="accordion-title">
{{ title }}
</h5>
</h2>

<div class="accordion-navigation-actions">
{{#if selected}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/faceted-search/facets/range.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
class="accordion-navigation toggleLink {{#unless start_collapsed }} is-open {{/unless}}"
role="button"
data-collapsible="#facetedSearch-content--{{hyphenate facet }}">
<h5 class="accordion-title">
<h2 class="accordion-title">
{{ title }}
</h5>
</h2>

<div class="accordion-navigation-actions">
{{#if selected}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/faceted-search/facets/rating.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class="accordion-navigation toggleLink {{#unless ../start_collapsed }} is-open {{/unless}}"
role="button"
data-collapsible="#facetedSearch-content--{{hyphenate facet }}">
<h5 class="accordion-title">
<h2 class="accordion-title">
{{ title }}
</h5>
</h2>

<div class="accordion-navigation-actions">
{{#if selected}}
Expand Down
4 changes: 2 additions & 2 deletions templates/components/faceted-search/selected-facets.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="facetedSearch-refineFilters sidebarBlock">
<h5 class="sidebarBlock-heading">
<h2 class="sidebarBlock-heading">
{{lang 'search.faceted.selected.title'}}
</h5>
</h2>

{{#if this.items}}
<ul class="inlineList inlineList--labels">
Expand Down

0 comments on commit 16520c5

Please sign in to comment.