@atlaskit/dropdown-menu
Version:
A dropdown menu displays a list of actions or options to a user.
19 lines (17 loc) • 659 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var canUseDOM = function canUseDOM() {
return Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
};
/*
* Making sure we can fallback to browsers doesn't support voice over -
* we would using menuitemcheckbox / menuitemradio for these that supports voice over, and
* will fallback to checkbox / radio for these doesn't
*/
var isVoiceOverSupported = function isVoiceOverSupported() {
return /Mac OS X/.test(canUseDOM() ? navigator.userAgent : '');
};
var _default = exports.default = isVoiceOverSupported;