Skip to content

Commit

Permalink
Merge branch 'release/2.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Nov 18, 2022
2 parents c890a7e + 25cc7a3 commit b8053d9
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.5.0 (11/18/22)
* Changed: Uses Mai Theme v2 config for arrow icons when using Mai Testimonials slider block.
* Fixed: Mai Testimonials slider block now works with nested elements like SVGs.
* Fixed: [Developers] Wrong filter name for previous/next arrow.

## 2.4.2 (10/27/22)
* Added: New loading icon when viewing next slide in Mai Testimonials slider block.
* Fixed: Error if Mai Engine is deactivated or deleted while Mai Testimonials is still active.
Expand Down
5 changes: 5 additions & 0 deletions assets/css/mai-testimonials.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@
height: var(--spacing-xl);
}

.mait-arrow-icon {
width: 1em;
height: 1em;
}

.has-boxed {
--testimonial-padding: var(--spacing-xl);
--testimonial-background: var(--color-white);
Expand Down
2 changes: 1 addition & 1 deletion assets/css/mai-testimonials.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions assets/js/mai-testimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
var getTestimonials = function( event ) {
event.preventDefault();

if ( event.target.dataset.disabled ) {
var el = event.target.classList.contains( 'mait-button' ) ? event.target : event.target.parentElement;

if ( el.dataset.disabled ) {
return;
}

slider = event.target.closest( '.mait-slider' );
paged = event.target.dataset.slide;
slider = el.closest( '.mait-slider' );
paged = el.dataset.slide;

getSlide( slider, paged );
};
Expand Down
2 changes: 1 addition & 1 deletion assets/js/mai-testimonials.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8053d9

Please sign in to comment.