Skip to content

Commit

Permalink
Merge branch 'release/2.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Sep 4, 2020
2 parents facf4d2 + 4edf7c1 commit f247429
Show file tree
Hide file tree
Showing 40 changed files with 508 additions and 328 deletions.
20 changes: 20 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 2.4.3 (9/4/20)
* Added: New helper utility classes for hidden-{breakpoint}, hidden-{breakpoint}-up, and hidden-{breakpoint}-down to hide elements at various breakpoints.
* Added: Now use Mai Theme icon as favicon if none set in Customizer.
* Added: Mai Icon now has a setting to open links in new window.
* Changed: Deprecated heading font size settings now that they are in WP core.
* Fixed: Buttons not working correctly/efficiently when adding button classes to menu items.
* Fixed: Author box not 100% width of container in some scenarios.
* Fixed: Default footer credits template part showing a warning/error when trying to edit the text.
* Fixed: Ellipsis was showing on content/excerpts even when text is not truncated.
* Fixed: Mai Grid markup was being output even if no entries matched the query.
* Fixed: Breadcrumbs not matching content side spacing.
* Fixed: Custom button border radius not working in some instances.
* Fixed: WooCommerce checkout page, and payment gateway layout and styling.
* Fixed: WooCommerce product grid showing list styles.
* Fixed: Entries wrap not taking up full width of the container.
* Fixed: Mai Grid entry layout being affected by WooCommerce CSS when a grid is used on a product page.
* Fixed: Duplicate term descriptions showing on some WooCommerce taxonomy archives.
* Fixed: Better visited button default styling.
* Fixed: WooCommerce store notice now matches theme styling.

## 2.4.2 (8/27/20)
* Added: Updated Google Font list in Typography customizer fields via Kirki.
* Added: Before and after content HTML classes to entry meta.
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atomic-blocks.min.css

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

2 changes: 1 addition & 1 deletion assets/css/desktop.min.css

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

2 changes: 1 addition & 1 deletion assets/css/editor.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/facetwp.min.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.facetwp-pager+ul{display:none}
.facetwp-pager+ul,.facetwp-pager:empty{display:none}
2 changes: 1 addition & 1 deletion assets/css/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/woocommerce.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/js/blocks/blocks.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import './font-size-settings';
import './layout-settings';
157 changes: 0 additions & 157 deletions assets/js/blocks/font-size-settings.js

This file was deleted.

37 changes: 0 additions & 37 deletions assets/js/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,50 +199,13 @@
}
};

var switchMenuButtonClasses = function() {
var menuButtons = document.querySelectorAll( '.menu-item.button' );
var buttonClasses = [
'button-secondary',
'button-outline',
'button-link',
'button-white',
'button-small',
'button-large',
];

menuButtons.forEach( function( menuButton ) {
var buttonClassesToAdd = [];

buttonClasses.forEach( function( buttonClass ) {
if ( menuButton.classList.contains( buttonClass ) ) {
menuButton.classList.remove( buttonClass );
buttonClassesToAdd.push( buttonClass );
}
} );

menuButton.childNodes.forEach( function( childElement ) {
if ( 'menu-item-link' === childElement.className ) {
childElement.classList.add( 'button' );
childElement.classList.remove( 'menu-item-link' );

buttonClassesToAdd.forEach( function( buttonClass ) {
childElement.classList.add( buttonClass );
} );
}
} );

menuButton.classList.remove( 'button' );
} );
};

var onReady = function() {
createMobileMenu();
createMenuToggle();
cloneMenuItems();
addMenuItemClasses();
createSubMenuToggles();
createSearchForm();
switchMenuButtonClasses();

menuToggle.addEventListener( 'click', toggleMobileMenu, false );
searchMenuItems.forEach( function( searchMenuItem ) {
Expand Down
Loading

0 comments on commit f247429

Please sign in to comment.