fix(fab): Add dark theme support for FAB Security pages#60908
fix(fab): Add dark theme support for FAB Security pages#60908eladkal merged 4 commits intoapache:mainfrom
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
airflow_ui_bug.movHere is a recording using breeze. |
|
Static checks are failing |
da7c5d8 to
166e75b
Compare
|
I have fixed the issue. The problem was that the hashes were not updated for the js changes as I was not able to run pre-commit hook locally earlier. I am able to do it now. |
|
The compile-fab-assets pre-commit hook is failing in CI due to a hash mismatch between macOS and Linux environments. Issue: ✅ All checks pass locally on macOS (see screenshot below) CI Error: Compile FAB provider assets......................................................Failed
Old hash: e73e02e0b7eafdb1a6d3e8d32d4077bcddf48819650d166b3c40e938ad08a9bc Ready for CI approval to verify the fix. 🙏 |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
* fix(fab): Add dark theme support for FAB Security pages Fixes apache#60541
* fix(fab): Add dark theme support for FAB Security pages Fixes apache#60541
* fix(fab): Add dark theme support for FAB Security pages Fixes apache#60541

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:
runtime.jswas missing from the HTML template - this prevented webpackbundles from executing (webpack's
runtimeChunk: 'single'config requiresthe runtime to be loaded first)
Changes:
runtime.jstomain.htmltemplate before other webpack bundlesapplyColorScheme()function inmain.jsto read theme from localStorageand set
data-color-schemeattribute on document rootFixes #60541