Skip to content

Commit

Permalink
Merge branch 'release/v3.0.0-rc.25'
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Nov 30, 2018
2 parents 239656c + 67568f7 commit b4e0946
Show file tree
Hide file tree
Showing 17 changed files with 2,824 additions and 2,811 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Also try to search for your issue. It may have already been answered or even fix
<!-- BUG REPORT TEMPLATE -->
### UIkit version
<!-- Check if the issue is reproducible with the latest stable version. -->
3.0.0-rc.24
3.0.0-rc.25

### Browser

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 3.0.0 rc 25 (November 30, 2018)

### Fixed

- Fix `hasClass` in IE11 again
- Fix workaround to mitigate the duplicating icons issue

## 3.0.0 rc 24 (November 23, 2018)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit-rtl.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.0.0-rc.24 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
/*! UIkit 3.0.0-rc.25 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
/* ========================================================================
Component: Base
========================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/uikit.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.0.0-rc.24 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
/*! UIkit 3.0.0-rc.25 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
/* ========================================================================
Component: Base
========================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion dist/css/uikit.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/uikit-icons.js

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

2 changes: 1 addition & 1 deletion dist/js/uikit-icons.min.js

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions dist/js/uikit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! UIkit 3.0.0-rc.24 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
/*! UIkit 3.0.0-rc.25 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
Expand Down Expand Up @@ -1182,7 +1182,7 @@
}

function hasClass(element, cls) {
return cls && toNodes(element).some(function (element) { return element.classList.contains(cls); });
return cls && toNodes(element).some(function (element) { return element.classList.contains(cls.split(' ')[0]); });
}

function toggleClass(element) {
Expand Down Expand Up @@ -5445,13 +5445,16 @@
removeAttr(el, 'width');
}

var src = this$1.icon || this$1.src;
attr(el, 'data-svg', src);

var root = this$1.$el;
if (isVoidElement(root) || root.tagName === 'CANVAS') {

attr(root, {hidden: true, id: null});

var next = root.nextElementSibling;
if (next && el.isEqualNode(next)) {
if (src === attr(next, 'data-svg')) {
el = next;
} else {
after(root, el);
Expand All @@ -5460,7 +5463,7 @@
} else {

var last = root.lastElementChild;
if (last && el.isEqualNode(last)) {
if (src === attr(last, 'data-svg')) {
el = last;
} else {
append(root, el);
Expand Down Expand Up @@ -8199,7 +8202,7 @@

}

UIkit.version = '3.0.0-rc.24';
UIkit.version = '3.0.0-rc.25';

core(UIkit);

Expand Down
4 changes: 2 additions & 2 deletions dist/js/uikit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "uikit",
"title": "UIkit",
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
"version": "3.0.0-rc.24",
"version": "3.0.0-rc.25",
"main": "dist/js/uikit.js",
"style": "dist/css/uikit.css",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions src/js/core/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@ export default {
removeAttr(el, 'width');
}

const src = this.icon || this.src;
attr(el, 'data-svg', src);

const root = this.$el;
if (isVoidElement(root) || root.tagName === 'CANVAS') {

attr(root, {hidden: true, id: null});

const next = root.nextElementSibling;
if (next && el.isEqualNode(next)) {
if (src === attr(next, 'data-svg')) {
el = next;
} else {
after(root, el);
Expand All @@ -101,7 +104,7 @@ export default {
} else {

const last = root.lastElementChild;
if (last && el.isEqualNode(last)) {
if (src === attr(last, 'data-svg')) {
el = last;
} else {
append(root, el);
Expand Down
2 changes: 1 addition & 1 deletion src/js/util/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function replaceClass(element, ...args) {
}

export function hasClass(element, cls) {
return cls && toNodes(element).some(element => element.classList.contains(cls));
return cls && toNodes(element).some(element => element.classList.contains(cls.split(' ')[0]));
}

export function toggleClass(element, ...args) {
Expand Down
Loading

0 comments on commit b4e0946

Please sign in to comment.