shivaam opened a new pull request, #60908:
URL: https://github.com/apache/airflow/pull/60908
Fix dark theme not being applied to FAB Security pages (Users, Roles, etc.)
When dark theme is enabled in the main Airflow UI, the Security menu pages
displayed in light theme because they render in an iframe from the FAB
provider.
**Root cause:**
1. `runtime.js` was missing from the HTML template - this prevented webpack
bundles from executing (webpack's `runtimeChunk: 'single'` config
requires
the runtime to be loaded first)
2. No code was reading the theme preference from localStorage
**Changes:**
- Add `runtime.js` to `main.html` template before other webpack bundles
- Add `applyColorScheme()` function in `main.js` to read theme from
localStorage
and set `data-color-scheme` attribute on document root
Fixes #60541
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]