Skip to content

Commit

Permalink
Updated component to version 2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Nov 6, 2015
1 parent 92869a3 commit a388cf0
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 36 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 2.1.5 - Nov 1, 2015

- **Checkbox/Dropdown/Search** - Fixed issue where using `.trigger('change')` would not fire native `change` event. Only triggering event handlers attached with jQuery #3108

#### Features

- **Checkbox** - Added 4 new callbacks `beforeChecked`, `beforeUnchecked`, `beforeDeterminate`, `beforeIndeterminate`. You can now cancel a state change by returning false from these callbacks.
Expand Down
38 changes: 19 additions & 19 deletions checkbox.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.1.4 - Checkbox
* # Semantic UI 2.1.5 - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -68,11 +68,11 @@
width: 17px;
height: 17px;
content: '';
background: #ffffff;
background: #FFFFFF;
border-radius: 0.21428571rem;
-webkit-transition: border 0.1s ease, opacity 0.1s ease, -webkit-transform 0.1s ease, box-shadow 0.1s ease;
transition: border 0.1s ease, opacity 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
border: 1px solid #d4d4d5;
border: 1px solid #D4D4D5;
}

/*--------------
Expand Down Expand Up @@ -124,7 +124,7 @@

.ui.checkbox .box:hover::before,
.ui.checkbox label:hover::before {
background: #ffffff;
background: #FFFFFF;
border-color: rgba(34, 36, 38, 0.35);
}
.ui.checkbox label:hover,
Expand All @@ -138,7 +138,7 @@

.ui.checkbox .box:active::before,
.ui.checkbox label:active::before {
background: #f9fafb;
background: #F9FAFB;
border-color: rgba(34, 36, 38, 0.35);
}
.ui.checkbox .box:active::after,
Expand All @@ -155,8 +155,8 @@

.ui.checkbox input:focus ~ .box:before,
.ui.checkbox input:focus ~ label:before {
background: #ffffff;
border-color: #96c8da;
background: #FFFFFF;
border-color: #96C8DA;
}
.ui.checkbox input:focus ~ .box:after,
.ui.checkbox input:focus ~ label:after {
Expand All @@ -172,7 +172,7 @@

.ui.checkbox input:checked ~ .box:before,
.ui.checkbox input:checked ~ label:before {
background: #ffffff;
background: #FFFFFF;
border-color: rgba(34, 36, 38, 0.35);
}
.ui.checkbox input:checked ~ .box:after,
Expand All @@ -187,7 +187,7 @@

.ui.checkbox input:indeterminate ~ .box:before,
.ui.checkbox input:indeterminate ~ label:before {
background: #ffffff;
background: #FFFFFF;
border-color: rgba(34, 36, 38, 0.35);
}
.ui.checkbox input:indeterminate ~ .box:after,
Expand All @@ -204,8 +204,8 @@
.ui.checkbox input:indeterminate:focus ~ label:before,
.ui.checkbox input:checked:focus ~ .box:before,
.ui.checkbox input:checked:focus ~ label:before {
background: #ffffff;
border-color: #96c8da;
background: #FFFFFF;
border-color: #96C8DA;
}
.ui.checkbox input:indeterminate:focus ~ .box:after,
.ui.checkbox input:indeterminate:focus ~ label:after,
Expand Down Expand Up @@ -315,7 +315,7 @@
/* Focus */
.ui.radio.checkbox input:focus ~ .box:before,
.ui.radio.checkbox input:focus ~ label:before {
background-color: #ffffff;
background-color: #FFFFFF;
}
.ui.radio.checkbox input:focus ~ .box:after,
.ui.radio.checkbox input:focus ~ label:after {
Expand All @@ -331,7 +331,7 @@
/* Active */
.ui.radio.checkbox input:checked ~ .box:before,
.ui.radio.checkbox input:checked ~ label:before {
background-color: #ffffff;
background-color: #FFFFFF;
}
.ui.radio.checkbox input:checked ~ .box:after,
.ui.radio.checkbox input:checked ~ label:after {
Expand All @@ -341,7 +341,7 @@
/* Active Focus */
.ui.radio.checkbox input:focus:checked ~ .box:before,
.ui.radio.checkbox input:focus:checked ~ label:before {
background-color: #ffffff;
background-color: #FFFFFF;
}
.ui.radio.checkbox input:focus:checked ~ .box:after,
.ui.radio.checkbox input:focus:checked ~ label:after {
Expand Down Expand Up @@ -394,8 +394,8 @@
/* Handle */
.ui.slider.checkbox .box:after,
.ui.slider.checkbox label:after {
background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #FFFFFF -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #FFFFFF linear-gradient(transparent, rgba(0, 0, 0, 0.05));
position: absolute;
content: '' !important;
opacity: 1;
Expand Down Expand Up @@ -501,8 +501,8 @@
/* Handle */
.ui.toggle.checkbox .box:after,
.ui.toggle.checkbox label:after {
background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #FFFFFF -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
background: #FFFFFF linear-gradient(transparent, rgba(0, 0, 0, 0.05));
position: absolute;
content: '' !important;
opacity: 1;
Expand Down Expand Up @@ -543,7 +543,7 @@
}
.ui.toggle.checkbox input:checked ~ .box:before,
.ui.toggle.checkbox input:checked ~ label:before {
background-color: #2185d0 !important;
background-color: #2185D0 !important;
}
.ui.toggle.checkbox input:checked ~ .box:after,
.ui.toggle.checkbox input:checked ~ label:after {
Expand Down
15 changes: 10 additions & 5 deletions checkbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.1.4 - Checkbox
* # Semantic UI 2.1.5 - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -502,10 +502,15 @@ $.fn.checkbox = function(parameters) {

trigger: {
change: function() {
module.verbose('Triggering change event from programmatic change');
$input
.trigger('change')
var
events = document.createEvent('HTMLEvents'),
inputElement = $input[0]
;
if(inputElement) {
module.verbose('Triggering native change event');
events.initEvent('change', false, true);
inputElement.dispatchEvent(events);
}
}
},

Expand Down Expand Up @@ -801,4 +806,4 @@ $.fn.checkbox.settings = {

};

})( jQuery, window , document );
})( jQuery, window, document );
4 changes: 2 additions & 2 deletions checkbox.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions checkbox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"framework"
],
"license": "MIT",
"version": "2.1.4"
"version": "2.1.5"
}
15 changes: 10 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.1.4 - Checkbox
* # Semantic UI 2.1.5 - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -503,10 +503,15 @@ module.exports = function(parameters) {

trigger: {
change: function() {
module.verbose('Triggering change event from programmatic change');
$input
.trigger('change')
var
events = document.createEvent('HTMLEvents'),
inputElement = $input[0]
;
if(inputElement) {
module.verbose('Triggering native change event');
events.initEvent('change', false, true);
inputElement.dispatchEvent(events);
}
}
},

Expand Down Expand Up @@ -802,4 +807,4 @@ _module.exports.settings = {

};

})( require("jquery"), window , document );
})( require("jquery"), window, document );
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Package.describe({
name : 'semantic:ui-checkbox',
summary : 'Semantic UI - Checkbox: Single component release',
version : '2.1.4',
version : '2.1.5',
git : 'git://github.com/Semantic-Org/UI-Checkbox.git',
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-checkbox",
"version": "2.1.4",
"version": "2.1.5",
"title": "Semantic UI - Checkbox",
"description": "Single component release of checkbox",
"homepage": "http://www.semantic-ui.com",
Expand Down

0 comments on commit a388cf0

Please sign in to comment.