Closes: https://github.com/zurb/foundation-sites/issues/10867
this.options.isRevealed = this.options.isRevealed || new RegExp(this.options.revealClass, 'g').test(this.$element[0].className);
+ // Get the revealOn option from the class / ensure the `reveal-on-*` class is set.
if (this.options.isRevealed === true) {
+ if (this.options.revealOn)
this.options.revealOn = this.options.revealOn || this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split('-')[2];
+ this.$element.first().addClass(`reveal-for-${this.options.revealOn}`);
this._setMQChecker();
}