compat component add/remove css class via lifecycle hooks to apply compat specific rules

This commit is contained in:
Harald Bamberger
2026-10-06 15:22:16 +02:00
parent 88b49b70e9
commit 784e5693b4
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -7,6 +7,11 @@ html {
font-size: 0.875em;
}
body.compat,
body.compat main#cis-main {
background-color: #fff;
}
.fhc-dark-bg{
background-color: var(--fhc-dark);
color:var(--fhc-light) !important;
+6
View File
@@ -16,9 +16,15 @@ export default {
return this.mode + '#' + this.path + '#' + this.query_string;
}
},
beforeMount: function() {
document.body.classList.add('compat');
},
mounted: function() {
this.srcUrl = this.buildSrcUrl();
},
beforeUnmount: function() {
document.body.classList.remove('compat');
},
watch: {
propsWatchHelper: function() {
if(this.lastLoadediFrameURL === '') {