Repository navigation
web: share one brand CSS style sheet across elements (cherry-pick #27362 to version-2026.8) - #27454
Conversation
Every AKElement built its own CSSStyleSheet from the brand's custom CSS, so a page with N elements parsed the brand CSS N times and held N copies. Lit's sheet cache never hit because createCSSResult wraps the string in a new strings array each call. This hurts most when the brand CSS inlines a font or image. Build the sheet once and have every element and nested shadow root adopt it. The cache is keyed on the CSS text so a re-read server context, as injectBrand does in tests, still gets a matching sheet.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## version-2026.8 #27454 +/- ##
===============================================
Coverage 92.07% 92.08%
===============================================
Files 1166 1166
Lines 75537 75537
Branches 4129 4129
===============================================
+ Hits 69554 69557 +3
+ Misses 5917 5914 -3
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
version-2026.8 has no #common/brand or injectBrand, so the test imported a module that does not exist on this branch. Write the server-rendered JSON to window.authentik instead, which globalAK reads and converts on this branch.
|
Note 🤖 Claude Opus 5.5 responding on behalf of Dominic Fixed in 9e01870: the backported test imported What I checked:
Status: squash auto-merge is on. Merging still needs an approval from a |
|
Note 🤖 Claude Opus 5.5 responding on behalf of Dominic CI is green on 6964282: all four required checks passed, as did |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6964282901fdb5cb057f5af1b2fe9459ab4455df
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-6964282901fdb5cb057f5af1b2fe9459ab4455dfAfterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #27362 to
version-2026.8branch.Original PR: #27362
Original Author: @dominic-r
Cherry-picked commit: 4f14fc5