Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge branch 'feature/80752' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrankowska committed Jul 22, 2021
2 parents 540d5d0 + f9c0b01 commit 3a81878
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
- add to cart sticky shouldn't have focusable elements when it has `aria-hidden="true"` (#80420)
- some a11y issues in checkout (#80424)
- gallery navigation not showing on load (#80752)
- gallery placeholder not showing on load and jumping image on load (#80752)
### Changed
- instead of using atomic classes for some page heading styles added in a lot of places, created a new class for easier customization (#80498)
### Updated
Expand Down
14 changes: 14 additions & 0 deletions Magento_Catalog/styles/modules/_fotorama.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$_block-content-loading-margin-bottom: 30px !default;

.fotorama {
width: 100%;

Expand Down Expand Up @@ -195,9 +197,21 @@
}

&._block-content-loading {
margin-bottom: $_block-content-loading-margin-bottom;

@include mq($screen-m) {
margin-bottom: 0;
}

.fotorama__nav--dots,
.fotorama__nav--thumbs {
position: absolute;
bottom: 0;
opacity: 0;

@include mq($screen-l) {
position: relative;
}
}

.loader {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ $gallery__thumb-border-active--dots : 0 !default;
$gallery__placeholder-width : auto !default;
$gallery__placeholder-padding-bottom : $spacer--medium !default;
$gallery__placeholder-padding-bottom\@medium: 0 !default;
$gallery__placeholder-transform\@large : translate(calc(-50% + #{$spacer--medium}), -50%) !default;
$gallery__placeholder-transform\@large : translate(calc(-50% + #{$spacer}), -50%) !default;
$gallery__placeholder-padding-right\@large : calc(#{$gallery__thumb-width\@medium + 2px}) !default;
5 changes: 5 additions & 0 deletions Snowdog_Components/components/Organisms/gallery/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
max-height: none;
}

&:is(picture).ratio-image {
width: 100%;
height: 100%;
}

&.ratio-image {
@include mq($screen-l) {
top: 50%;
Expand Down

0 comments on commit 3a81878

Please sign in to comment.