Skip to content

Commit

Permalink
Adds #3370 zIndex with type fixed visibility api
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed May 1, 2016
1 parent b75d5f4 commit a4ef537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
**Major Enhancements**
- **Popup** - Added new `tooltip` popup type that works **without javascript**. Tooltips can specify positioning and some variations using `data` attributes, and will handle positioning automatically with CSS only.
- **Webpack** - Modified all relative paths in project to prefix with `./` to make them webpack friendly (wont be misinterpreted as module)
- **Form Validation** - Added ability for field validation to depend on other fields being filled out
- **Popup** - Added new setting `boundary` and `scrollContext. `boundary` lets you specify an element that the popup will try to position itself to be contained inside of. `scrollContext` lets you specify the element which when scrolled should hide the popup
- **Popup** - Added new settings `autoRemove`, which is enabled by default. This will add special event listeners to auto hide a popup if the triggering element is removed from the DOM. This is useful in controlled DOM environments like Meteor/Ember/React to ensure a popup auto-hides itself when a page navigation or other DOM change occurs that may not trigger `mouseout`.
- **Dropdown** - Dropdown now changes user selection on keyboard shortcuts **immediately**, this will save the extra `enter` key press to confirm selection in most cases. To enable previous pre `2.2` selection style use the setting `selectOnShortcut: false`
Expand Down Expand Up @@ -88,6 +89,7 @@
- **Table** - `definition table` now supports `ignored` variation to force a `first-child` to ignore its default definition stylings
- **Table-- `definition table` now supports `definition` variation to specify definition styles on an element that is not `:first-child`
-**Table** - More granular variables for controlling style on first column in a `definition table`
-**Visibility** - Added `zIndex` setting for specifying zindex with `type: 'fixed'` #3370

**Changes**
- **Sizing** - `mini` the smallest size has been modified to align to `11px` instead of previous `10px` at base em size
Expand Down
5 changes: 4 additions & 1 deletion src/definitions/behaviors/visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ $.fn.visibility = function(parameters) {
position : 'fixed',
top : settings.offset + 'px',
left : 'auto',
zIndex : '1'
zIndex : settings.zIndex
})
;
},
Expand Down Expand Up @@ -1179,6 +1179,9 @@ $.fn.visibility.settings = {
// special visibility type (image, fixed)
type : false,

// z-index to use with visibility 'fixed'
zIndex : '1',

// image only animation settings
transition : 'fade in',
duration : 1000,
Expand Down

0 comments on commit a4ef537

Please sign in to comment.