Skip to content

Commit

Permalink
Add the CSS class to the <html> element
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 28, 2023
1 parent 713fc20 commit fb6e6d9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions core-bundle/assets/controllers/scroll-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ export default class extends Controller {

up () {
if (this.hasUpClass) {
document.body.classList.add(this.upClass);
document.documentElement.classList.add(this.upClass);
}

if (this.hasDownClass) {
document.body.classList.remove(this.downClass);
document.documentElement.classList.remove(this.downClass);
}
}

down () {
if (this.hasUpClass) {
document.body.classList.remove(this.upClass);
document.documentElement.classList.remove(this.upClass);
}

if (this.hasDownClass) {
document.body.classList.add(this.downClass);
document.documentElement.classList.add(this.downClass);
}
}

Expand Down
2 changes: 2 additions & 0 deletions core-bundle/public/backend.04c522fe.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions core-bundle/public/backend.04c522fe.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions core-bundle/public/backend.6a4d1987.js

This file was deleted.

1 change: 0 additions & 1 deletion core-bundle/public/backend.6a4d1987.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion core-bundle/public/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"entrypoints": {
"backend": {
"js": [
"/bundles/contaocore/backend.6a4d1987.js"
"/bundles/contaocore/backend.04c522fe.js"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions core-bundle/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"backend.js": "/bundles/contaocore/backend.6a4d1987.js",
"backend.6a4d1987.js.map": "/bundles/contaocore/backend.6a4d1987.js.map"
"backend.js": "/bundles/contaocore/backend.04c522fe.js",
"backend.04c522fe.js.map": "/bundles/contaocore/backend.04c522fe.js.map"
}

0 comments on commit fb6e6d9

Please sign in to comment.