Skip to content

Conversation

@Mmx233
Copy link
Contributor

@Mmx233 Mmx233 commented Jan 31, 2026

Details

After PR #17444, Brand CSS was only applied when ThemeChangeEvent fired. Components created after the initial event never received the custom styles.

This fix immediately applies Brand CSS when a style root is set, ensuring all nested Shadow DOM components (like flow stages) receive brand styling regardless of when they are created.

Made and tested with a test image based on the version/2025.12.2 tag: mmx233/authentik:2025.12.2-fix-brand-css

Fixes #19556


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@Mmx233 Mmx233 requested a review from a team as a code owner January 31, 2026 16:47
@netlify
Copy link

netlify bot commented Jan 31, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 9f4bdd7
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/697ed1325a33fc0008bd3717
😎 Deploy Preview https://deploy-preview-19892--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush self-assigned this Feb 1, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Feb 1, 2026
After PR goauthentik#17444, Brand CSS was only applied when ThemeChangeEvent fired.
Components created after the initial event never received the custom styles.

This fix immediately applies Brand CSS when a style root is set, ensuring
all nested Shadow DOM components (like flow stages) receive brand styling
regardless of when they are created.
@netlify
Copy link

netlify bot commented Feb 1, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6bb557a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/697ecf359439880008292e76
😎 Deploy Preview https://deploy-preview-19892--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
@netlify
Copy link

netlify bot commented Feb 1, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6bb557a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/697ecf3575eeae00085bc556
😎 Deploy Preview https://deploy-preview-19892--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush added this to the Release 2025.12.2 milestone Feb 1, 2026
@GirlBossRush GirlBossRush added backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 needs_documentation Questions/Issues that require additional documentation labels Feb 1, 2026
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.21%. Comparing base (469bc0b) to head (9f4bdd7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19892      +/-   ##
==========================================
- Coverage   93.24%   93.21%   -0.04%     
==========================================
  Files         968      968              
  Lines       53331    53331              
==========================================
- Hits        49731    49712      -19     
- Misses       3600     3619      +19     
Flag Coverage Δ
conformance 38.07% <ø> (+<0.01%) ⬆️
e2e 44.08% <ø> (+<0.01%) ⬆️
integration 22.87% <ø> (-0.05%) ⬇️
unit 91.41% <ø> (ø)
unit-migrate 91.44% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GirlBossRush GirlBossRush merged commit 54fad67 into goauthentik:main Feb 1, 2026
102 checks passed
authentik-automation bot pushed a commit that referenced this pull request Feb 1, 2026
* web: fix Brand CSS not applied to nested Shadow DOM components

After PR #17444, Brand CSS was only applied when ThemeChangeEvent fired.
Components created after the initial event never received the custom styles.

This fix immediately applies Brand CSS when a style root is set, ensuring
all nested Shadow DOM components (like flow stages) receive brand styling
regardless of when they are created.

* Update web/src/elements/Base.ts

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>

* Clarify.

---------

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
Co-authored-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 needs_documentation Questions/Issues that require additional documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom CSS under Branding settings do not apply after upgrading from 2025.10 to 2025.12

2 participants