We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68cd7a2 commit 3c71f8eCopy full SHA for 3c71f8e
2 files changed
app/assets/javascripts/administrate-materialize-theme/theme.js
@@ -2,5 +2,6 @@
2
3
// --- on ready ----------------------------------------------------------------
4
document.addEventListener('DOMContentLoaded', () => {
5
- M.AutoInit();
6
-});
+ M.AutoInit()
+ document.querySelector('body').classList.add('administrate-materialize-theme')
7
+})
spec/system/theme_spec.rb
@@ -10,5 +10,6 @@
10
expect(page).to have_css('.app-container', style: { 'padding': '0px' })
11
expect(page).to have_css('.main-content', style: { 'border-radius': '0px' })
12
expect(page).to have_css('.main-content__body', style: { 'overflow-x': 'scroll' })
13
+ expect(page).to have_css('body.administrate-materialize-theme')
14
end
15
0 commit comments