fix(design): Disable getting background colour dynamically

This commit is contained in:
tecc 2023-06-20 22:03:08 +02:00
parent c8ad060bc8
commit b62ecfe340
No known key found for this signature in database
GPG Key ID: 400AAD881FCC028B

View File

@ -165,9 +165,9 @@ export default {
},
mounted() {
if (!process.client) { return; }
this.$el.querySelectorAll('.colour').forEach(el => {
/*this.$el.querySelectorAll('.colour').forEach(el => {
el.innerHTML = rgbToHex(getComputedStyle(el.parentElement).getPropertyValue('background-color'));
});
});*/
this.$el.querySelectorAll('.font').forEach(el => {
el.innerHTML = getComputedStyle(el.parentElement).getPropertyValue('font-family').split(',')[0].replaceAll('"', '');
});