Semantic-Org/Semantic-UI · warning
The overlay setting is no longer supported, use animation: o
Error message
The overlay setting is no longer supported, use animation: overlay
What it means
Emitted by Sidebar's show() (sidebar.js:372-373) when settings.overlay is truthy — the overlay setting was deprecated in favor of animation/transition:'overlay'. Sidebar coerces it (sets settings.transition='overlay') so the overlay animation still runs, then logs this deprecation warning. It is a console.error (sidebar.js:818), not thrown.
Source
Thrown at src/definitions/modules/sidebar.js:1026
selector: {
fixed : '.fixed',
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
pusher : '.pusher',
sidebar : '.ui.sidebar'
},
regExp: {
ios : /(iPad|iPhone|iPod)/g,
mobileChrome : /(CriOS)/g,
mobile : /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g
},
error : {
method : 'The method you called is not defined.',
pusher : 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element',
movedSidebar : 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag',
overlay : 'The overlay setting is no longer supported, use animation: overlay',
notFound : 'There were no elements that matched the specified selector'
}
};
})( jQuery, window, document );
View on GitHub (pinned to 597843ab84)
Solutions
- Replace overlay:true with transition:'overlay' (the documented form).
- Update to the current Semantic UI docs and remove any legacy overlay config.
- Set silent:true only if you must keep the deprecated setting temporarily.
Example fix
// before
$('.sidebar').sidebar({ overlay: true }).sidebar('show');
// after
$('.sidebar').sidebar({ transition: 'overlay' }).sidebar('show'); Defensive patterns
Strategy: validation
Validate before calling
// Reject deprecated config early and migrate to the supported form.
function safeSidebar($el, opts){
opts = opts || {};
if (opts.overlay) {
console.warn('sidebar overlay:true is deprecated; use transition:\'overlay\'.');
opts.transition = 'overlay';
delete opts.overlay;
}
return $el.sidebar(opts);
} Prevention
- Use transition:'overlay' instead of the deprecated overlay:true.
- Audit old config/examples when upgrading Semantic UI versions.
- Run a startup lint pass that warns on any deprecated settings keys.
When it happens
Trigger: $('.sidebar').sidebar({ overlay: true }).sidebar('show') — the truthy settings.overlay trips the deprecation branch at sidebar.js:372.
Common situations: Copying old config/examples that used overlay:true, upgrading from an older Semantic UI version where overlay was a first-class setting.
Related errors
- Starting in 2.0 forms now only take a single settings object
- onTabInit has been renamed to onFirstLoad in 2.0, please adj
- onTabLoad has been renamed to onLoad in 2.0. Please adjust y
- The method you called is not defined.
- Had to add pusher element. For optimal performance make sure
AI-assisted analysis of Semantic-Org/Semantic-UI@597843ab84 (2026-08-13).
Data as JSON: /api/errors/e17577ab3fd56934.
Report an issue: GitHub.