From a459b5d871f037c83ff5fb0fd9b1e85ee749cb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Fri, 19 Apr 2024 15:42:52 +0200 Subject: [PATCH] jquery: Add the `js` class, remove the `no-js` one This used to be done by Modernizr until its removal in 08f27c14ffc14c158b25e190cfa00125fb79c0d3. Some sites apply different styling for JS-disabled environments; one such example is the jQuery UI Download Builder which expands all Themeroller knobs sections in the no-JS mode. --- themes/jquery/js/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/jquery/js/main.js b/themes/jquery/js/main.js index 48fa82fb..e1e51183 100644 --- a/themes/jquery/js/main.js +++ b/themes/jquery/js/main.js @@ -1,3 +1,6 @@ +// Some CSS depends on the `js` class. +$( "html" ).addClass( "js" ).removeClass( "no-js" ); + /* * All sites */