# Changelog All notable changes to AdminLTE will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed - With `data-enable-persistence="true"`, a sidebar toggle that a listener vetoes through the cancelable `open.lte.push-menu` or `collapse.lte.push-menu` event no longer saves a state the sidebar never reached. A blocked toggle now leaves the stored preference untouched, so a vetoed tap on a mobile-size screen can no longer overwrite the state the user chose on desktop ([#6159](https://github.com/ColorlibHQ/AdminLTE/pull/6159), @Dev-next-gen). ## [4.10.2] - 2026-11-16 ### Changed - The compiled CSS is built on **Bootstrap 5.3.9** (was 5.3.8). Upstream changes include the new `.modal-xxl` size and placeholder glow/wave animations that now respect `prefers-reduced-motion`. The demo pages load Bootstrap JS 5.3.9, which includes the tooltip/popover fix that preserves literal text from data attributes. The `bootstrap` peer dependency stays at `^5.3.8`. - Update the pinned demo libraries: Bootstrap Icons 1.13.2, Source Sans 3 5.3.1, Chart.js 4.6.1, FullCalendar 7.1.5, OverlayScrollbars 2.17.0, Tabulator 6.7.1, Tom Select 2.7.0, Pickr 1.10.3 and FilePond 4.32.14. Every CDN integrity hash was recomputed and verified. - Refresh every build, lint, formatting and testing dependency to its latest release, including Astro 7.4.12, ESLint 10.15.0, eslint-plugin-unicorn 80, happy-dom 21, bundlewatch 1.2, Playwright 1.65.1, Rollup 4.68.4, Sass 1.108.2 and Vitest 5.1.0, and regenerate the lockfile so transitive packages are current. Two tools stay where they are. TypeScript stays on 6.0.3, because typescript-eslint and the Astro checker do not yet support TypeScript 7. Stylelint stays on 17.16.0, because Bootstrap's shared Stylelint config still extends rules that Stylelint 18 removed. ### Fixed - Fix the broken `src/ts/` GitHub link on the JavaScript plugins overview page ([#6154](https://github.com/ColorlibHQ/AdminLTE/pull/6154), @reynoldsalec). ### Security - `npm audit` reports 0 vulnerabilities. The `braces` advisory noted in 4.10.1 is resolved, as are new advisories against Astro, undici, happy-dom, follow-redirects and fast-uri. minimatch is overridden to `^11.0.8` for typescript-eslint and nodemon ([GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249)). ## [4.10.1] - 2026-10-08 ### Changed - Refresh build, lint, formatting, and testing dependencies to the latest compatible stable releases, including Astro 7.3.7, Rollup 4.64.2, Playwright 1.64.0, Vitest 5.0.3, Sass 1.105.1, and ESLint 10.12.0. Replace `npm-run-all` with the maintained `npm-run-all2` and declare the previously implicit `unist-util-visit` dependency. - Update pinned demo and integration libraries, including FullCalendar 7.1.1, Tabulator 6.6.1, OverlayScrollbars 2.16.0, jsVectorMap 1.7.0, and Tom Select 2.6.2. Migrate FullCalendar's stylesheet, Bootstrap theme, draggable, and event-colour APIs, and refresh existing CDN integrity hashes. - Building from source requires Node.js 22.22.3+, 24.16.0+, or 26.3.0+ and npm 10+, declared through `devEngines`; the published package retains its existing Node.js engine requirement. TypeScript remains on 6.0.3 because the latest Astro checker and TypeScript ESLint releases do not yet support TypeScript 7. ### Fixed - Synchronize every fullscreen control, including when initializing a layout already in fullscreen, without changing public events or component APIs. Scope icon updates to fullscreen controls so they do not interfere with card-maximize buttons. - Prevent shared-header overflow at tablet widths, preserve local dates in calendar events, and tolerate an unavailable OverlayScrollbars CDN script. - Improve demo filter labels, grid semantics, product-link names, calendar accessible names, and light/dark contrast. Dark-mode outline buttons and documentation links now use theme-aware colour tokens; fixed palette swatches retain a white demonstration background. - Check Astro source pages explicitly, fix previously hidden palette typing errors, and repair the ESM Prettier configuration and Unicorn recommended preset. ### Added - Playwright checks for every built HTML page, responsive light/dark layouts, RTL, and key plugin interactions, with Chromium, Firefox, and WebKit CI jobs. - Node.js 22/24/26 unit-test CI, light/dark accessibility CI, and fullscreen regression tests. Missing Playwright now fails accessibility checks rather than silently skipping them. - `npm run test-size` enforces all existing gzip budgets locally without an external reporting service; `npm run production` uses this check. Bundlewatch remains available for CI reporting. ### Security - Refresh security overrides, including a patched PostCSS selector parser. Production dependencies audit clean. Development tooling still includes `braces@3.0.3`, affected by [GHSA-vfj7-8cjw-p6xm](https://github.com/advisories/GHSA-vfj7-8cjw-p6xm); no patched release is available. Its twenty propagated npm audit findings remain unresolved rather than downgrading the current toolchain. ## [4.10.0] - 2026-10-01 ### Changed - **The demo charts are drawn with Chart.js (MIT) instead of ApexCharts.** From 5.2.0 ApexCharts is published under its own commercial "ApexCharts License" rather than MIT, and a template that thousands of projects copy into their products cannot carry that on to them. Every chart on Dashboard v1, v2 and v3 and on the charts showcase is rebuilt on Chart.js 4.5.1 with the same data, colours and sizes: area and line charts (gradient fills), grouped columns, doughnuts, the radial bar (concentric doughnut rings with the average in the middle), the mixed bar-and-line chart with two value axes, and the dashboard sparklines. Chart.js is loaded from jsDelivr with an SRI hash, only on the pages that draw charts, exactly as ApexCharts was — the `admin-lte` npm package has never depended on a chart library and still does not. Gzipped chart JavaScript per charted page drops from 131.5 kB (ApexCharts 3.37.1 JS + CSS) to 72.8 kB (Chart.js 4.5.1 plus the 2.3 kB inline theme preset below). The showcase page is now `charts/chartjs.html` and the sidebar entry reads "Chart.js". `charts/apexcharts.html` stays as a redirect so existing links keep working. - **One chart theme preset, following the colour mode live.** The charted pages include a short preset (`src/html/components/_chartjs.astro`) that sets `Chart.defaults` from AdminLTE's CSS variables — body font, secondary text for ticks, 8% gridlines with no vertical grid on category axes, rounded bars, a tooltip and legend styled like a card — and restyles every chart on the page when `` changes (the ColorMode toggle, the OS in auto mode, or your own code) or when the web font finishes loading. Under `` legends and tooltips are laid out right-to-left. The ApexCharts colour-mode helper that every demo page carried in its shared scripts (#6105) is gone with it, so the 85 pages without charts are 1.6 kB lighter too. The [dark-mode charts recipe](https://adminlte.io/themes/v4/docs/recipes.html#charts-that-follow-dark-mode), the Recommended Integrations, Migration and RTL docs are updated to match. One Chart.js detail worth knowing if you adapt the preset: Chart.js copies the scale defaults into each chart's config when the chart is created, so changing `Chart.defaults` and calling `chart.update()` leaves existing axes in the old colours. The preset drops those copied colours before it updates; see the comment in the component. ### Fixed - **The brand logo sat 4px left of centre in the collapsed mini sidebar.** `.brand-text` keeps its base `margin-left: .5rem` while `.sidebar-mini.sidebar-collapse` shrinks it to `max-width: 0`, so 8px of margin on a zero-width element pushed the logo off the rail's centre line. The margin is now cleared in that state — the hover rule that expands the rail already re-declared `margin-left: .5rem`, which is what the collapsed state should have mirrored all along (#6114, by @dfsmania). ### Maintenance - **Dev dependencies refreshed** — eslint 10.8.1 -> 10.9.1, eslint-plugin-unicorn 73 -> 74, @typescript-eslint/* and typescript-eslint 8.67.0 -> 8.69.0, astro 7.2.4 -> 7.2.10, @astrojs/mdx 7.0.7 -> 8.0.0, @astrojs/markdown-remark 7.2.4 -> 7.3.0, rollup 4.62.4 -> 4.63.1, terser 5.50.0 -> 5.51.2, happy-dom 20.11.6 -> 20.12.0, sass 1.103.0 -> 1.103.1, globals 17.11.0 -> 17.12.0. Every one of the 114 built files in `dist/` is byte-identical afterwards, so this changes nothing for consumers. `@astrojs/mdx` 8.0.0 is a major but not an Astro 8 requirement — it peers `astro@^7.2.6` — and it flattens the tree rather than growing it: four nested duplicates of `@astrojs/markdown-remark` and `@astrojs/internal-helpers` go away and `@astrojs/markdown-satteri` is hoisted to the top level. `npm ci` from a clean checkout resolves with no peer warnings. - **TypeScript stays on 6.0.3.** 7.0.2 is out and Dependabot proposes it monthly, but two peers still refuse it: `@astrojs/check@0.9.10` (the latest) declares `typescript@^5.0.0 || ^6.0.0`, and `typescript-eslint@8.69.0` declares `>=4.8.4 <6.1.0`. The upgrade fails at `npm ci` with `ERESOLVE`, so it cannot land until both move. ## [4.9.1] - 2026-08-26 ### Fixed - **A page whose content ended near a sheet boundary still printed one blank sheet.** `.app-main` carries `padding-bottom: $grid-gutter-width * .5` — breathing room above the fold on screen, trailing whitespace on paper. 12px of it was enough to push a page that otherwise ended 1px inside the second sheet onto a third, empty one; `UI/ribbons.html` was the case in the demo set, printing three sheets for two sheets of content. The padding is now cleared in print, along with the negative `margin-bottom` on `.app-content-bottom-area` that exists only to cancel it. One page of the 90 in `dist/` changes page count; nothing else moves (#6113, reported by @johnnyq). ## [4.9.0] - 2026-08-26 ### Changed - **A printed page is a document again — the header, sidebar and footer no longer print.** v3 left all three off the paper; v4 printed them, and the result on a real document was the invoice page in the report: 200px of every sheet spent on a menu the reader cannot click, the invoice squeezed into what was left (its own table wrapping "Pro plan subscription" across three lines), and the sidebar's 85 menu items running past the foot of the first sheet — so a one-page invoice printed as two pages, the second one all but empty. The content now gets the full width of the paper. Print the whole shell again with `data-lte-print="app"` on `` or ``, or bring back one piece of it with Bootstrap's own utilities — `.d-print-flex` for the header, which is a navbar, `.d-print-block` for the sidebar and footer. `.d-print-none` still hides anything you don't want on paper, in either mode (#6113, reported by @johnnyq). `data-lte-print` is now matched per token, so `data-lte-print="plain app"` sets both. `data-lte-print="plain"` is unaffected. ### Fixed - **The layout kept its viewport-sized dimensions in print.** `.app-wrapper` carries `min-height: 100vh` and `max-width: 100vw`, and neither was cleared for print even though the print block deliberately rewrites that same element's grid. Paper has no viewport to fill: the wrapper reserved a full sheet however short the page was, which is why the printed invoice put its footer at the foot of a sheet of empty grey with the content in the top third, and why anything following the wrapper opened a new page. Both are now reset in print, together with the `max-width: 100vw` on the header, main and footer (#6113, reported by @johnnyq). - **The print block set `display` on elements it did not need to.** Forcing `display: block` on `.app-sidebar` was what made `.d-print-none` unable to hide it before 4.6.0, and the same shape would have made `.d-print-*` unable to show it now. Printing the shell is a matter of *not* hiding it, so the rules that hide it are simply scoped out instead, and nothing in the print block forces a `display` value on the header, sidebar or footer any more. ## [4.8.5] - 2026-08-20 ### Fixed - **`npm run production` printed six Sass deprecation warnings.** The palette sheets used the ternary `if()` in three places — `lte-needs-aa()` in `colors/_variables.scss` and the text-colour pick in `colors/_primary.scss`, twice — and Sass 1.95.0 deprecated that syntax in favour of the CSS `if()`. Both `adminlte-colors.scss` and `adminlte-colors-v3.scss` pull those files in, hence six warnings for three call sites. They are now plain `@if` statements rather than Sass's suggested `if(sass(...): ...; else: ...)`, which would need Sass >= 1.95 of anyone compiling AdminLTE from source. Compiled output is byte-identical (#6111, reported by @lfiorini). For the record, Bootstrap's own `if()` calls warn too — 82 of them across `bootstrap/scss` — but `css-compile` already passes `--quiet-deps`, so nothing under `node_modules` reaches the console. Every warning in that report was AdminLTE's own. ### Maintenance - **Dev dependencies refreshed** — sass 1.102.0 -> 1.103.0, astro 7.2.3 -> 7.2.4, @astrojs/mdx 7.0.6 -> 7.0.7, happy-dom 20.11.2 -> 20.11.6. All within their current majors; `dist/` is byte-identical, so this changes nothing for consumers. - **The docs build moved off Astro's deprecated `markdown.rehypePlugins`.** Astro 7.2.4 deprecates the top-level `remarkPlugins` / `rehypePlugins` / `remarkRehype` keys in favour of an explicit `markdown.processor`, so the bump above added a fresh warning to the very command #6111 was about. The responsive-tables plugin now goes through `unified()` from `@astrojs/markdown-remark` — the same remark/rehype pipeline, now a direct dev dependency. All 90 built pages are byte-identical, `.table-responsive` wrapping included. - **`nanoid` bumped to 3.3.18 in the lockfile** — GHSA-2v37-7h3g-55p8 (high), a transitive dev-only dependency where a custom generator could loop forever on `size: 0`. `npm audit` now reports zero vulnerabilities; nothing shipped in `dist/` was ever affected. - **TypeScript stays on 6.0.3.** 7.0.2 is out, but `typescript-eslint` still declares `peerDependencies.typescript: ">=4.8.4 <6.1.0"` and `@astrojs/check` accepts `^5 || ^6`, so the toolchain still cannot move. ## [4.8.4] - 2026-08-19 ### Fixed - **Reference tables on the docs pages pushed the page sideways on a phone.** Markdown pipe-tables render as a bare `` with no scroll container, so anything wider than three columns overflowed the viewport — 265px of it on the Colors page. They are now wrapped in `.table-responsive` with a tab stop, exactly like the hand-written tables next to them, so the table scrolls inside the column and stays keyboard-reachable. Desktop layout is unchanged. ## [4.8.3] - 2026-08-19 ### Fixed - **Every page scrolled sideways on a phone.** At 390px the header's right-hand item row (messages, notifications, fullscreen, user menu) is a little wider than the viewport at Bootstrap's default 1rem nav-link padding, so `document.scrollWidth` came out 22px past `clientWidth` on all 90 demo pages — a horizontal scrollbar on every screen. Below `sm` the header now halves `--bs-navbar-nav-link-padding-x`; from `sm` up nothing changes (the user menu keeps its 182px width and its label). Measured 412/390 before, 390/390 after, desktop unaffected. Worth noting for anyone who checks this themselves: measure `scrollWidth > clientWidth`, not `> window.innerWidth` — the layout viewport grows to match the overflow, so the `innerWidth` comparison silently passes. ## [4.8.2] - 2026-08-19 ### Fixed - **The documentation's install snippets were being served as `[email protected]`.** Cloudflare's Email Obfuscation treats any `package@version` in a text node as an email address and rewrites it as a mailto link — so every version-pinned snippet on the live docs pages was unusable: 31 of them on Integrations (Flatpickr, Tom Select, Quill, Chart.js …), 8 each on Introduction and Deployment, 7 on Getting Started. The docs pages now carry `` markers, the same fix docs.adminlte.io already used. ### Changed - **The docs' install snippets are stamped from `package.json`.** Introduction, Getting Started, Deployment and Colors still pinned `admin-lte@4.0.0`, eight releases after that was current. `sync-version.mjs` now stamps `admin-lte@X.Y.Z` in the docs sources alongside the SCSS/TS banners, so `npm version` keeps them honest. A deliberate floating `admin-lte@4` (the README quick start) is left alone. ### Maintenance - **Dev dependencies refreshed** — astro 7.1.6 → 7.2.3, @astrojs/mdx 7.0.5 → 7.0.6, eslint 10.8.0 → 10.8.1, the typescript-eslint trio 8.66.0 → 8.67.0, vitest 4.1.10 → 4.1.11, happy-dom 20.11.1 → 20.11.2, axe-core 4.12.1 → 4.13.0, terser 5.49.2 → 5.50.0, postcss 8.5.25 → 8.5.26, globals 17.9.0 → 17.11.0, concurrently 10.0.4 → 10.0.5, lockfile-lint 5.0.0 → 5.0.1. All within their current majors; `dist/` is byte-identical, so this changes nothing for consumers. - **TypeScript stays on 6.0.3.** 7.0.2 is out, but `typescript-eslint` still declares `peerDependencies.typescript: ">=4.8.4 <6.1.0"` and `@astrojs/check` accepts `^5 || ^6`, so the toolchain cannot move yet. It will be picked up when those two allow it. ## [4.8.1] - 2026-08-19 ### Fixed - **Pagination lost its focus ring under `data-lte-primary`.** Both palette sheets shipped a literal `$pagination-focus-box-shadow-width` in their compiled output: Sass does not evaluate `$variables` inside a custom property value — it emits them verbatim rather than failing — so the typo compiled cleanly, reached the browser as text, and made the declaration invalid. `--bs-pagination-focus-box-shadow` then resolved to nothing and keyboard focus on `.page-link` became invisible, a keyboard-accessibility regression introduced in 4.6.0. The value is now built from Bootstrap's focus-ring tokens (the variable it named never existed; the right one is `$focus-ring-width`) and follows the theme colour. A unit test now scans the compiled output of all three sheets for unresolved Sass variables, since compilation cannot catch this class of typo (#6109, reported by @johnnyq). ## [4.8.0] - 2026-08-19 ### Added - **`data-lte-contrast="aa"` — WCAG AA text on the AdminLTE 3 palette, without changing a single colour.** The v3 sheet reproduces v3's YIQ text rule faithfully, and that rule assigns white text to eight colours that do not reach 4.5:1 for normal text: `teal` (2.13:1), `cyan` (3.04), `green` (3.13), `olive` (3.51), `lightblue` (3.67), `fuchsia` (3.79), `pink` (3.82) and `blue` (3.98). The attribute — on ``, `` or any container — flips exactly those eight to the ink that passes (5.28:1 to 9.86:1), leaving every background byte-identical, and covers everywhere the palette paints text on its own colour: `.text-bg-*`, `.bg-gradient-*`, `.card-*` headers, `.direct-chat-*` and the button, badge and pill text `data-lte-primary` produces. It has to be true black: AdminLTE 3's own dark ink `#1f2d3d` clears 4.5:1 on only two of the eight, so the colours that already carry dark text (`lime`, `orange`, `yellow`) keep `#1f2d3d` and are left alone. Rules are emitted per colour only where the palette's own rule falls short, so the designed palette — every colour AA with white by construction — emits nothing and the switch costs it nothing. **UI → Colors** and **Theme Customize** gained a toggle that also re-pairs a flipped sidebar or header with `data-bs-theme="light"` so its nav links follow (#6110, reported by @johnnyq). ### Fixed - **`data-lte-primary` gave Bootstrap's `info` white text on the v3 sheet.** The primary presets applied the active sheet's contrast rule to Bootstrap's own theme colours too, and v3's YIQ test puts `#0dcaf0` at 149.8 against a threshold of 150 — one tenth of a point from dark text — so `data-lte-primary="info"` produced white on cyan at 1.96:1 while `.btn-info` on the same page stayed black. Bootstrap's theme colours now keep Bootstrap's own contrast rule; the palette colours keep the sheet's. ## [4.7.0] - 2026-08-18 ### Added - **`data-lte-print="plain"` — print a page as a document, not as a copy of a screen.** Two rules in the print stylesheet restyle content unconditionally: the target of every external link is printed after it (`a[href^="http"]::after`), and buttons are outlined in black. They are the HTML5 Boilerplate conventions and they suit printing a web page, but they are wrong for an invoice, quote or work order that goes to a customer — `Pay online (https://pay.example.com/inv/12345?token=…)` is not what anyone wants on paper. The attribute turns both off, on ``, `` or any single container, while text stays black on white so nothing becomes unreadable. Note that `.d-print-none` could not have served as the opt-out: it hides the element, and these rules restyle elements that are meant to print (#6108, requested by @johnnyq). Documented as the **“Printing a page as a document”** recipe. ### Fixed - **Every sidebar item printed inside a black box.** The print rule that outlines buttons also listed `.nav-link`, and the sidebar prints by design (since 4.0.0), so a printed page came out with a black rectangle around all 85 menu items. The outline now applies to `.btn` only; nav links keep the ink-saving black-on-transparent treatment and print as ordinary text (#6108). - The FAQ answer for “How do I change the primary colour?” recommended overriding `--bs-primary` on `:root` — the one approach that leaves `.btn-primary` blue, which is what led to #6107. It now gives the two that work: `$primary` in Sass, or `data-lte-primary` with the palette sheet. ## [4.6.0] - 2026-08-18 ### Added - **Make any palette colour Bootstrap's `primary` — `data-lte-primary`.** Bootstrap compiles `$primary` into its components, so `.btn-primary` ships with `--bs-btn-bg: #0d6efd` rather than `var(--bs-primary)`: overriding the token repainted the utilities and left every button, pagination, checkbox and focus ring blue, which is why a coloured skin looked half-applied. Both colour sheets now rewire those components to variables and point them at a colour with one attribute — `` — covering `.btn-primary` / `.btn-outline-primary` (hover, active and disabled shaded exactly as Bootstrap shades its own), `.btn-link`, links and `.link-primary`, the `--bs-primary` token trio, `.nav-pills`, `.pagination`, `.progress-bar`, `.list-group-item.active`, `.dropdown-item.active`, `.accordion`, `.form-control` / `.form-select` focus, checkboxes, radios, switches, `.form-range`, `--bs-focus-ring-color`, and AdminLTE's `.card-primary`, `.direct-chat-primary` and `.toast-primary` — in both colour modes, with Bootstrap's dark-mode link tint. Nothing changes without the attribute, and it works on any container, so one page can carry more than one primary. Bootstrap's own theme colours are presets too (`data-lte-primary="danger"`), a brand colour outside the palette needs only `--bs-primary` (hover shades are then derived with `color-mix()` where supported), and `$lte-palette-custom: ("brand": #hex)` generates a full preset in Sass. Every skin preset now names the primary that goes with it, so applying a skin on **UI → Colors** or **Theme Customize** recolours the buttons too; both pages gained a picker and a live preview, and the Colors docs page a section (#6107, requested by @johnnyq). ### Fixed - **`d-print-none` did nothing on the sidebar and the app wrapper.** The print layout fix from 4.0.0 set `display: grid !important` on `.app-wrapper` and `display: block !important` on `.app-sidebar`, and — being later in the cascade and equally `!important` — beat Bootstrap's `.d-print-none`, so those two elements could not be hidden for printing. Both rules are now scoped with `:not(.d-print-none)`: the print layout still applies to the standard layout, and the display utilities win where a page asks them to (#6106, reported by @johnnyq). - **The skip link went invisible on hover.** `.skip-link:hover` painted `var(--bs-primary-emphasis)`, which Bootstrap does not define (it emits `--bs-primary-text-emphasis`), so the background computed to transparent and left white text on the page background. It now uses the emphasis token — dark in light mode, light in dark mode — with the body background for the text. ### Maintenance - Computed colours in both palette sheets are emitted as hex instead of Sass's `rgb(5.647%, 40.784%, 39.216%)` (cleancss leaves values inside custom properties alone), which pays for a good part of the new feature: `adminlte-colors.css` is ≈ 8 kB gzipped and `adminlte-colors-v3.css` ≈ 9.3 kB. `adminlte.css` is unchanged. - `npm run palette -- --check` and the unit tests also verify that every skin's primary exists in its own palette and that both sheets emit the rewiring rules and a preset per colour. ## [4.5.0] - 2026-08-18 ### Added - **The AdminLTE 3 palette, as it was — `dist/css/adminlte-colors-v3.css`.** A second opt-in sheet for everyone who preferred the original colours: the 18 AdminLTE 3 colours (lightblue, navy, olive, lime, fuchsia, maroon, blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, gray-dark) with the values from the 3.2 build and v3's text-colour rule (Bootstrap 4's YIQ test — white on lightblue, olive, teal…, dark on lime, orange, yellow), emitting exactly the same class families as the designed palette. Load one sheet or the other; they share class names. Built from the same Sass — new `$lte-palette-contrast: "wcag" | "yiq"` knob (with `$lte-palette-yiq-threshold`, `$lte-palette-yiq-text-dark/-light`) — so `$lte-palette-custom` and `$lte-palette-aliases` work with it too. Twelve AdminLTE 2 skin presets (skin-blue, -black, -purple, -green, -red, -yellow and their -light variants) in v4 terms. **UI → Colors** and **Theme Customize** gained a palette switch that swaps the stylesheet live and shows that palette's tiles, presets and pickers; the Colors docs page documents both. `npm run palette -- --check` and the unit tests keep the v3 map and its metadata in step (#6103, follow-up for @johnnyq). ## [4.4.1] - 2026-08-18 ### Fixed - **Charts unreadable in dark mode.** ApexCharts drew its light-theme tooltip (white background) while the tooltip text inherited the page's dark-mode body colour — near-white on white — and axis labels stayed dark grey on the dark card, in every browser. Every demo page now carries a small shared helper (`_scripts`): it sets ApexCharts' global default `theme.mode` from `` before any chart is created, keeps the chart background transparent, and watches the attribute so every chart with a `chart.id` follows the toggle, the OS preference in auto mode, or your own code. All demo charts got ids. Documented as the **“Charts that follow dark mode”** recipe (#6105, reported by @Yusk03). ## [4.4.0] - 2026-08-18 ### Added - **Extended colour palette (`dist/css/adminlte-colors.css`)** — an opt-in stylesheet (≈ 5 kB gzipped; `adminlte.css` is unchanged) that adds fourteen colours — orange, amber, olive, teal, sky, indigo, violet, fuchsia, pink, and the chrome neutrals navy, steel, slate, graphite, midnight — as `--bs-*` tokens plus every family Bootstrap generates for its own theme colours: `.bg-*`, `.text-bg-*`, `.text-*`, `.border-*`, `.link-*`, `.bg-gradient-*` (also for the eight theme colours, as in v3), `.card-*` / `.card-outline`, `.callout-*`, `.direct-chat-*`, with the subtle/emphasis tokens for dark mode and a hover shade for `.btn.bg-*`. The palette is generated, not picked: in OKLCH, each chromatic colour is the lightest value whose white text still reaches 4.6:1 (WCAG AA), hues sit ≥ 17° from every Bootstrap theme colour and ≥ 20° from each other, chroma is capped at parity with `primary`, and the five neutrals are cool-tinted and sit at the lightness steps popular admin kits use for sidebars. `scripts/palette.mjs` regenerates it (`npm run palette`) and checks it (`--check`); a unit test keeps the Sass map and the demo data in step. Add your own with `$lte-palette-custom: ("brand": #hex)`, replace the set with `$lte-palette`, restore v3 names with `$lte-palette-aliases: ("lightblue": "sky", "maroon": "pink")`. Documented on the new **Colors** page (`docs/colors.html`) — palette, class families, 17 skin presets in four families (light, semi-dark, full dark, coloured & gradient) each with a layout thumbnail, widget-set presets, brand-colour recipe, design rules with a hue/chroma plot — and demonstrated on **UI → Colors** (`UI/colors.html`), which recolours its own sidebar and header live from thumbnail presets, shows the four dashboard sets and every component, and has a brand-colour checker that reports contrast, proposes a same-hue value that passes, and prints the Sass snippet (#6103, requested by @johnnyq). - **Header search and sidebar filter restyled** — one shared treatment (`mixins/_search-field.scss`): a quiet pill with the icon inside as the submit button, coloured only from theme-relative tokens (`--bs-emphasis-color-rgb`, `--bs-body-color`), so it reads as soft glass on any coloured or dark header / sidebar and soft grey on a white one, instead of a boxed `.input-group` with an outline button that turned near-black under `data-bs-theme="dark"`. The header field widens slightly on focus; below `md` an icon links to the search page. New variables `$lte-search-field-*` (width, focus width, font size, padding, icon space); the Main Header docs snippet, which still showed v3's inert `data-widget="navbar-search"`, now shows the real markup. - **Theme Customize (`generate/theme.html`)** offers the palette in its sidebar / navbar / footer pickers under "Extended palette", gained a preset row with the same thumbnails, reflects the page's current state on load, and defaults the colour mode to dark when a palette colour is picked; its three duplicated scripts are one controller. - The Migration and Customization pages point to the palette; the migration guide maps every AdminLTE 3 colour and skin class to its v4 form. ### Fixed - **Sidebar taller than the viewport with the sidebar filter in place.** `.sidebar-wrapper` was sized with a hard-coded `100vh − header height`, which assumed only the brand sat above it; the `SidebarSearch` field added in 4.3.0 sits between the brand and the wrapper (on purpose, so it stays put while the menu scrolls), so the wrapper overflowed the sidebar by exactly the filter's height and the last menu items were cut off. `.app-sidebar` is now a flex column: brand and filter keep their size (`flex: 0 0 auto`), `.sidebar-wrapper` fills the rest (`flex: 1 1 auto; min-height: 0`) and scrolls — in fixed layouts, the `fixed-header`-only case, and the off-canvas sidebar. Anything else placed above or below the menu now sizes correctly too, without a height calc (#6104, reported by @dfsmania). ## [4.3.1] - 2026-08-10 ### Fixed - **Ribbons left the card corner bare.** The banner was centred on its clipping square, but the square's centre is the point *furthest* from the corner — so the banner sat too far into the card, left a large empty triangle at the corner it is supposed to cover, and had its label cut off by the clip. The banner's centre now sits on the corner's bisector at ~46% of the square's side, the proportion that leaves the label room and fills the corner, and the width is the chord across the corner rather than the square's diagonal. RTL mirrors as before. - The ribbons demo uses short labels and states the constraint: the banner is clipped to the corner, so only about `64px` of it is readable at the default size. `.ribbon-lg` and `.ribbon-xl` give more room. Documented on the Miscellaneous components page. ## [4.3.0] - 2026-08-10 ### Added - **Gallery page (`pages/gallery.html`)** — a filterable media library: responsive tile grid, per-item action menus, a live result count and an empty state. It carries **no image library at all** — the tiles are a Bootstrap `.ratio` box plus `.object-fit-cover`, and the category filter is ~25 lines of page-local script, so nothing is added to `adminlte.js` and no CDN dependency is imposed on anyone who just wants the grid. A lightbox stays deliberately out of scope; it is the part that needs a dependency. - **Search results page (`pages/search-results.html`)** — typed results (page / user / file / project, each with its own icon and badge) over a tabbed type filter, plus a refine panel, related searches, pagination and a worked "no results" state. The navbar search now posts to it with `name="q"` instead of `action="#"`, so the search added alongside `SidebarSearch` has a real destination. - **Language menu in the app header** — a `bi-translate` dropdown listing five locales with the current one marked via `.active` + `aria-current`, and `hreflang` on each item. It is markup only, by design; the new **"A language switcher wired to a real locale"** recipe in the docs covers the four things that separate a working switcher from set dressing — real per-locale links rather than `#` plus a click handler, the locale living in the URL or a cookie rather than `localStorage` (the server has to know it *before* it renders), marking the current language for assistive tech, and serving `adminlte.rtl.css` alongside `dir="rtl"` when switching to an RTL locale. - **`SidebarSearch` plugin** — a filter field above the sidebar menu (`data-lte-toggle="sidebar-search"` on an input, optional `data-lte-target` for the menu). Typing hides non-matching entries and expands whatever submenu holds a match; a group whose own name matches keeps its entire subtree, so expanding it is never a dead end. Clearing the field — `ESC`, the native clear button, or `clear()` — restores every entry *and* each submenu's previous open state, including the inline `display` Treeview's slide animation leaves behind. Entries are hidden with the `hidden` attribute rather than a class, so they leave the accessibility tree too. Fires `filtered.lte.sidebar-search` with `{ query, matches }`; both listeners are delegated on `document`, so a sidebar rendered after load needs no re-initialisation. Wired into every demo and docs page, and documented at `docs/javascript/sidebar-search.html`. - **Navbar search** in the app header — a `role="search"` form with a visually-hidden label, shown from the `md` breakpoint up, posting to the new search results page. - **Ribbons** (`.ribbon-wrapper` + `.ribbon`, sizes `.ribbon-lg` / `.ribbon-xl`) — the corner banner from v3, rebuilt. The wrapper clips the banner and the banner is centred on it before rotating, so the whole geometry follows one custom property (`--lte-ribbon-size`) and stays correct at every scale; the clip inherits the parent's corner radius, so it follows a rounded card instead of cutting a square out of it. Colour comes from a `.text-bg-*` utility and long labels truncate rather than breaking the shape. rtlcss mirrors both the corner and the rotation, so RTL needs no extra markup. New demo page at `UI/ribbons.html`. - **Social and post widgets** (`.user-block`, `.post`, `.widget-user`, `.widget-user-2`, `.description-block`) — the profile cards and activity-feed blocks from v3, keeping their v3 class names so migrating markup works unchanged, but laid out with grid and flex rather than floats and coloured with Bootstrap utilities. `.user-block` renders avatar, name and meta from flat markup with no wrapper element. New demo page at `widgets/social.html`. - **Nav tabs & pills, modal and offcanvas sections** on `UI/general.html` — the three Bootstrap components the components showcase did not yet cover. - **Card and Miscellaneous documentation pages** (`docs/components/card.html`, `docs/components/miscellaneous.html`) — between them they document every AdminLTE component that ships CSS but had no reference until now: cards (anatomy, colour variants, states, tabbed cards, Sass variables), callouts, ribbons, small box, info box, timeline, the social/post widgets, progress-bar sizes, themed toasts and the image-size utilities. - **Select2 compatibility theme (`dist/css/adminlte-select2.css`)** — an opt-in, **CSS-only** sheet for projects that can't drop Select2 yet. AdminLTE still bundles neither Select2 nor jQuery and nothing is added to `adminlte.css`; load this one extra stylesheet after `select2.css` and a Select2 you bring yourself inherits Bootstrap 5.3's form metrics (`.form-select-sm` / `-lg` on the original `
Success message
``` **For Developers:** - Include accessibility utilities: `import { accessibilityUtils } from './adminlte.js'` - Use new CSS classes: `.sr-only`, `.touch-target`, `.text-accessible-*` - Test with screen readers and keyboard navigation --- ## [4.0.0-rc1] - 2025-06-20 ### Major Modernization Release This release represents a complete modernization of the AdminLTE codebase, bringing it up to current standards with the latest tooling, dependencies, and best practices. ### Infrastructure & Tooling #### Added - **New npm scripts for better developer experience:** - `npm start` - Quick development server launch - `npm run build` - Convenient build command for development - Enhanced `npm run production` with bundlewatch integration #### Changed - **Upgraded to ES Modules:** Added `"type": "module"` to package.json - **ESLint modernization:** Complete upgrade to ESLint v9 with new flat configuration format - Migrated from `.eslintrc.json` to modern `eslint.config.js` - Updated all ESLint plugins to latest versions - Resolved 700+ linting issues through automated fixes - **Astro configuration:** Added `output: 'static'` for proper static site generation - **Build optimizations:** Enhanced Rollup and PostCSS configurations for ES modules ### Dependencies #### Updated - **Major version upgrades:** - `astro`: 4.15.12 → 5.10.0 - `eslint`: 8.57.1 → 9.29.0 - `@typescript-eslint/eslint-plugin`: 7.18.0 → 8.34.1 - `@typescript-eslint/parser`: 7.18.0 → 8.34.1 - `eslint-config-xo`: 0.44.0 → 0.47.0 - `eslint-config-xo-typescript`: 4.0.0 → 8.0.1 - `eslint-plugin-astro`: 0.34.0 → 1.3.1 - `eslint-plugin-unicorn`: 52.0.0 → 59.0.1 - `stylelint-config-twbs-bootstrap`: 15.1.0 → 16.1.0 - **Minor/patch updates (50+ packages):** - `bootstrap`: 5.3.3 → 5.3.7 - `sass`: 1.78.0 → 1.89.2 - `typescript`: 5.6.2 → 5.8.3 - `prettier`: 3.3.3 → 3.5.3 - And many more... ### Security & Quality #### Fixed - **Resolved all npm security vulnerabilities** (0 vulnerabilities remaining) - **Updated browserslist database** to latest browser compatibility data - **Fixed all deprecation warnings** from SASS and other build tools #### Improved - **Code quality:** Zero linting errors across JavaScript, TypeScript, CSS, and Astro files - **Bundle optimization:** All assets pass bundlewatch size thresholds - **Build reliability:** Complete production build pipeline works end-to-end ### Code Cleanup #### Removed - **Technical debt cleanup:** - Removed incomplete TODO comments and dead code - Cleaned up unused variables and imports - Standardized code formatting across all files #### Fixed - **ESLint configuration conflicts** between different rule sets - **Module import issues** with JSON imports in ES modules - **Circular dependency warnings** in build tools ### Development Experience #### Enhanced - **Faster development startup** with optimized watch tasks - **Cleaner build output** with suppressed non-critical warnings - **Better error reporting** with modern linting tools - **Improved script organization** with consistent naming conventions ### Browser & Platform Support #### Maintained - **Full Bootstrap 5.3.7 compatibility** - **Modern browser support** with updated browserslist - **Static site generation** with Astro 5.x - **RTL (Right-to-Left) language support** --- ## Previous Versions ### [4.0.0-beta3] and earlier - Legacy versions with previous dependency sets - See git history for detailed changes in earlier versions --- ## Migration Guide ### From 4.0.0-beta3 to 4.0.0-rc1 **For Users:** - No breaking changes in the compiled CSS/JS output - All existing HTML templates remain fully compatible - CDN links and package imports work as before **For Developers:** - Update your npm scripts if you were using custom ones - The new `npm start` command replaces manual `npm run dev` - ESLint configuration is now in `eslint.config.js` (old `.eslintrc.json` removed) - Build process now requires Node.js ES modules support **Recommended Actions:** 1. Run `npm install` to get latest dependencies 2. Use `npm start` for development 3. Use `npm run production` for production builds 4. Review any custom ESLint configurations for compatibility