From e4d8a66a6f6795cf14629322caf9223e8c3da2f0 Mon Sep 17 00:00:00 2001
From: catch <6915-catch@users.noreply.drupalcode.org>
Date: Fri, 21 Mar 2025 20:56:12 +0000
Subject: [PATCH] Simplify js.module.css

---
 .../system/css/components/js.module.css        | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/core/modules/system/css/components/js.module.css b/core/modules/system/css/components/js.module.css
index 645d94fa3d5d..5b109ea4dc9f 100644
--- a/core/modules/system/css/components/js.module.css
+++ b/core/modules/system/css/components/js.module.css
@@ -3,30 +3,22 @@
  * Utility classes to assist with JavaScript functionality.
  */
 
-/**
- * For anything you want to hide on page load when JS is enabled, so
- * that you can use the JS to control visibility and avoid flicker.
- */
-.js .js-hide {
-  display: none;
-}
-
 /**
  * For anything you want to show on page load only when JS is enabled.
  */
 .js-show {
   display: none;
 }
-.js .js-show {
-  display: block;
-}
 
 /**
  * Use the scripting media features for modern browsers to reduce layout shifts.
  */
 @media (scripting: enabled) {
-  /* Extra specificity to override previous selector. */
-  .js-hide.js-hide {
+  /**
+   * For anything you want to hide on page load when JS is enabled, so
+   * that you can use the JS to control visibility and avoid flicker.
+   */
+  .js-hide {
     display: none;
   }
   .js-show {
-- 
GitLab