Skip to content

Commit

Permalink
Adds the bottom border that was removed from block titlebars in Craft…
Browse files Browse the repository at this point in the history
… 3.4.5 back in, for block types using tabs. Thanks @umkasanki! Bump to 1.2.4
  • Loading branch information
mmikkel committed Feb 15, 2020
1 parent 0a8e564 commit 448505a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.2.4 - 2020-02-15
### Improved
- Adds a bottom border to Matrix blocks' titlebars for block types with tabs (the native bottom border was removed in Craft 3.4.5) - thanks @umkasanki

## 1.2.3 - 2020-01-28
### Fixed
- Fixes Craft 3.4 compatibility issues
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/matrixmate",
"description": "Welding Matrix into shape, mate!",
"type": "craft-plugin",
"version": "1.2.3",
"version": "1.2.4",
"keywords": [
"craft",
"cms",
Expand Down
4 changes: 4 additions & 0 deletions src/assetbundles/matrixmate/dist/css/MatrixMate.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,7 @@ html.noscroll .matrixmate-settings-menu {
overflow: hidden;
max-height: none !important;
}

.matrixmate-has-tabs .titlebar {
border-bottom: 1px solid rgba(51, 64, 77, 0.1);
}
2 changes: 2 additions & 0 deletions src/assetbundles/matrixmate/dist/js/MatrixMate.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@
backgroundColor: blockColor
});

$block.addClass('matrixmate-has-tabs');

this.addListener($tabs.find('a'), 'click', 'onBlockTabClick');

},
Expand Down

0 comments on commit 448505a

Please sign in to comment.