baseframe-js
Advanced tools
Comparing version 4.7.5 to 4.7.6
@@ -123,8 +123,8 @@ import $ from 'cash-dom'; | ||
getModalObj() { | ||
const _ = this, { ariaLabel, ariaLabelledby, closeBtnIconCss, modalCss } = _.params, modalID = _.modalID, modalAttr = { | ||
class: 'modal' + (modalCss ? ' ' + modalCss : ''), | ||
const _ = this, { ariaLabel, ariaLabelledby, closeBtnIconCss, cssPrefix, modalCss } = _.params, modalID = _.modalID, modalAttr = { | ||
class: cssPrefix + (modalCss ? ' ' + modalCss : ''), | ||
'aria-label': (ariaLabel || _.element.dataset.ariaLabel) || '', | ||
'aria-labelledby': (ariaLabelledby || _.element.dataset.ariaLabelledby) || '', | ||
id: modalID | ||
}, closeBtnAttrs = { class: 'modal__btn-dismiss', type: 'button', 'aria-label': 'Close' }, $closeBtn = $('<button>').attr(closeBtnAttrs).append(`<i class="${closeBtnIconCss}"></i>`), $dialogContent = $('<div/>').attr({ class: 'modal__dialog-content' }), $dialog = $('<div/>').attr({ class: 'modal__dialog' }).append($closeBtn, $dialogContent), $backdrop = $('<div/>').attr({ class: 'modal__backdrop' }), $modal = $('<div/>').attr(modalAttr).append($backdrop, $dialog), $content = $(_.params.src || _.element.hash || _.element.dataset.modalSrc); | ||
}, closeBtnAttrs = { class: cssPrefix + '__btn-dismiss', type: 'button', 'aria-label': 'Close' }, $closeBtn = $('<button>').attr(closeBtnAttrs).append(`<i class="${closeBtnIconCss}"></i>`), $dialogContent = $('<div/>').attr({ class: cssPrefix + '__dialog-content' }), $dialog = $('<div/>').attr({ class: cssPrefix + '__dialog' }).append($closeBtn, $dialogContent), $backdrop = $('<div/>').attr({ class: cssPrefix + '__backdrop' }), $modal = $('<div/>').attr(modalAttr).append($backdrop, $dialog), $content = $(_.params.src || _.element.hash || _.element.dataset.modalSrc); | ||
return { | ||
@@ -131,0 +131,0 @@ $backdrop, |
{ | ||
"name": "baseframe-js", | ||
"version": "4.7.5", | ||
"version": "4.7.6", | ||
"description": "A suite of useful Javascript plugins and functions to help with Front-end Development on websites", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212634
3662