From 1b5a7be3d42f570d9005b03f5e5f4be7e1113077 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 4 Nov 2024 23:06:13 +0000 Subject: [PATCH] PERF: Replace slow `:has` selectors with body classes (#29581) --- app/assets/javascripts/discourse/app/templates/login.hbs | 2 +- app/assets/javascripts/discourse/app/templates/signup.hbs | 2 +- app/assets/stylesheets/common/base/login-signup-page.scss | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/login.hbs b/app/assets/javascripts/discourse/app/templates/login.hbs index 9c235fe38c3..b04c4640238 100644 --- a/app/assets/javascripts/discourse/app/templates/login.hbs +++ b/app/assets/javascripts/discourse/app/templates/login.hbs @@ -6,7 +6,7 @@ }} {{hide-application-header-buttons "search" "login" "signup" "menu"}} {{hide-application-sidebar}} - + {{body-class "login-page"}}
diff --git a/app/assets/javascripts/discourse/app/templates/signup.hbs b/app/assets/javascripts/discourse/app/templates/signup.hbs index 8082ad61db4..2bd6d197e13 100644 --- a/app/assets/javascripts/discourse/app/templates/signup.hbs +++ b/app/assets/javascripts/discourse/app/templates/signup.hbs @@ -1,7 +1,7 @@ {{! template-lint-disable no-duplicate-id }} {{hide-application-header-buttons "search" "login" "signup" "menu"}} {{hide-application-sidebar}} - +{{body-class "signup-page"}}