diff --git a/CHANGELOG.md b/CHANGELOG.md index e2197bf9d7..2ee86da7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Product list item Quick view button is not tabbable. [#1900](https://github.com/bigcommerce/cornerstone/pull/1900) - Social icon tooltip displaying should be fixed. [1907](https://github.com/bigcommerce/cornerstone/pull/1907) - Faceted search filters are hidden from screen readers. [#1897](https://github.com/bigcommerce/cornerstone/pull/1897) - Write a review modal extra executions. [#1902](https://github.com/bigcommerce/cornerstone/pull/1902) diff --git a/assets/scss/layouts/products/_productList.scss b/assets/scss/layouts/products/_productList.scss index 7d3a277b28..f32c40e40b 100644 --- a/assets/scss/layouts/products/_productList.scss +++ b/assets/scss/layouts/products/_productList.scss @@ -23,6 +23,21 @@ // ----------------------------------------------------------------------------- .listItem { + &:focus-within { + .listItem-figureBody { + @include breakpoint("large") { + opacity: 1; + } + } + } + + &.focus-within { + .listItem-figureBody { + @include breakpoint("large") { + opacity: 1; + } + } + } @include breakpoint("small") { @include grid-row($behavior: "nest"); @@ -52,7 +67,8 @@ border-color: $card-figcaption-button-borderColor; color: $card-figcaption-button-color; - &:hover { + &:hover, + &:focus { background-color: $card-figcaption-button-backgroundHover; border-color: $card-figcaption-button-borderColor; color: $card-figcaption-button-color; @@ -67,6 +83,11 @@ margin: 0 0 spacing("single"); position: relative; + &__link { + display: block; + margin: 3px; + } + @include breakpoint("small") { margin-bottom: 0; padding-left: spacing("half"); @@ -78,14 +99,11 @@ margin: spacing("single") 0; @include breakpoint("large") { - @include verticalPositionMiddle(); display: inline-block; - margin: 0 0 spacing("single"); + margin: 0; pointer-events: all; - transform-style: preserve-3d; } - } - + } } .listItem-figureBody { @@ -93,15 +111,13 @@ text-align: center; @include breakpoint("large") { - bottom: 0; - height: 100%; - left: spacing("half"); + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); opacity: 0; position: absolute; - right: spacing("half"); - top: 0; - &:hover { + .listItem:hover & { opacity: 1; } } diff --git a/templates/components/products/list-item.html b/templates/components/products/list-item.html index 686a61f57a..c619f8e4dc 100644 --- a/templates/components/products/list-item.html +++ b/templates/components/products/list-item.html @@ -4,6 +4,13 @@
{{/if}}
+ {{#or price.sale_price_with_tax.value price.sale_price_without_tax.value}} {{#if theme_settings.product_sale_badges '===' 'sash'}}
@@ -19,7 +26,7 @@
{{/if}} - {{/or}} + {{/or}} {{> components/common/responsive-img image=image class="listItem-image" @@ -27,10 +34,11 @@ lazyload=theme_settings.lazyload_mode default_image=theme_settings.default_image_product }} +
{{#unless hide_product_quick_view}} {{#if theme_settings.show_product_quick_view}}
- {{lang 'products.quick_view'}} +
{{/if}} {{/unless}}