Fix error pages not using the new theming infrastructure (#37524)

This commit is contained in:
Claire 2026-01-16 15:44:58 +01:00 committed by GitHub
parent a9bdf5eef9
commit 5727b866b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
import '../inline/theme-selection';

View File

@ -1,5 +1,5 @@
!!!
%html{ lang: I18n.locale }
%html{ lang: I18n.locale, 'data-contrast': 'auto', 'data-color-scheme': 'auto' }
%head
%meta{ 'content' => 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type' }/
%meta{ charset: 'utf-8' }/
@ -8,6 +8,7 @@
= vite_client_tag
= vite_react_refresh_tag
= vite_polyfills_tag
= vite_typescript_tag 'theme-selection.ts', crossorigin: 'anonymous', blocking: 'render'
= theme_style_tags Setting.default_settings['theme']
= vite_typescript_tag 'error.ts', crossorigin: 'anonymous'
%body.error