<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[zIndex configs interfere with SOME other modules]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/19628/global-module-positioning">Global module positioning</a></p>
<h1>zIndex config option is not applied — containers always render at <code>z-index: 9999</code></h1>
<h2>Description</h2>
<p dir="auto">The README documents a <code>zIndex</code> field per module entry (and references it in the Troubleshooting section: <em>“Adjust zIndex in your module config”</em>), but setting it has no effect. Positioned containers are always rendered with <code>z-index: 9999</code> regardless of the configured value.</p>
<h2>Steps to reproduce</h2>
<ol>
<li>Configure a module with an explicit <code>zIndex</code>:<pre><code class="language-js">{
  module: "MMM-GlobalPositioner",
  config: {
    debug: false,
    delay: 1000,
    maxAttempts: 5,
    modules: [
      { name: "MMM-GoogleSheets", position: { top: 160, left: 20 }, zIndex: 1 }
    ]
  }
}
</code></pre>
</li>
<li>Restart MagicMirror.</li>
<li>Inspect the generated container in DevTools.</li>
</ol>
<h2>Expected behavior</h2>
<p dir="auto">The container’s inline style should reflect <code>z-index: 1</code>.</p>
<h2>Actual behavior</h2>
<p dir="auto">The container is still rendered with <code>z-index: 9999</code>, e.g.:</p>
<pre><code class="language-html">&lt;div id="mm-global-container-MMM-GoogleSheets"
     style="position: fixed; z-index: 9999; pointer-events: none; left: 20px; top: 160px;"&gt;
</code></pre>
<h2>Impact</h2>
<p dir="auto">This makes it impossible to layer GlobalPositioner-managed modules <em>underneath</em> other overlay-based modules — for example, screen-dimming modules like <code>MMM-AutoDimmer</code>/<code>MMM-Dimmer</code>, which apply opacity via a <code>fullscreen_above</code> overlay. Because GlobalPositioner’s containers are hardcoded to <code>z-index: 9999</code>, modules repositioned by it always render above such overlays and never get dimmed, even though dimming works correctly for all normally-positioned modules.</p>
<h2>Workaround</h2>
<p dir="auto">Forcing the z-index via a custom stylesheet (<code>config/custom.css</code>) with <code>!important</code>, since the module sets it as an inline style:</p>
<pre><code class="language-css">div[id^="mm-global-container-"] {
  z-index: 1 !important;
}
</code></pre>
<p dir="auto">This resolves the visual conflict, but it would be better if the documented <code>zIndex</code> config option actually worked, so this kind of override isn’t necessary.</p>
<h2>Environment</h2>
<ul>
<li>MagicMirror²: v2.36.0 (commit <code>fb41d24ef522e91e802e2a623ff6afbddeb3c9d8</code>)</li>
<li>Node.js: v22.21.1</li>
<li>OS: Raspberry Pi OS</li>
</ul>
<p dir="auto">Otherwise, GREAT module!<br />
Karl</p>
]]></description><link>https://forum.magicmirror.builders/topic/20275/zindex-configs-interfere-with-some-other-modules</link><generator>RSS for Node</generator><lastBuildDate>Sun, 21 Jun 2026 20:41:26 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20275.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jun 2026 05:39:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zIndex configs interfere with SOME other modules on Sun, 21 Jun 2026 10:21:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amanzimdwini" aria-label="Profile: amanzimdwini">@<bdi>amanzimdwini</bdi></a> typically you would open an issue on the module GitHub page to engage the author. As most dont visit the forum regularly</p>
]]></description><link>https://forum.magicmirror.builders/post/131445</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131445</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Jun 2026 10:21:17 GMT</pubDate></item></channel></rss>