Skip to content

Commit 4bbb7f8

Browse files
committed
Add noscript disclaimer for color scheme
1 parent 028c3bf commit 4bbb7f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/views/color_schemes/form.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ def color_swatches(color_scheme)
180180
end
181181

182182
def darkmode_section
183+
noscript do
184+
markdown do
185+
"*Disclaimer: The Light/Dark mode switch is not available without JavaScript enabled.*"
186+
end
187+
end
188+
183189
markdown do
184190
"You can toggle the dark mode switch to see how the color scheme looks in light or dark mode. Choosing **Light Mode** or **Dark Mode** will save in your browser local storage and will persist across page views on your current device. Choose **System Mode** to remove the saved choice and fall back to your system preference."
185191
end

0 commit comments

Comments
 (0)