diff --git a/client/src/ui/classnormaliser.js b/client/src/ui/classnormaliser.js index f8509bf4..52cf0bf7 100644 --- a/client/src/ui/classnormaliser.js +++ b/client/src/ui/classnormaliser.js @@ -29,8 +29,8 @@ export default class ClassNormaliser extends Module { shouldIgnore(value) { if (!isNaN(value)) return true; if (value.endsWith('px') || value.endsWith('ch') || value.endsWith('em') || value.endsWith('ms')) return true; - if (value.startsWith('rgba')) return true; - if (value.includes('calc(')) return true; + if (value.startsWith('#') && (value.length == 7 || value.length == 4)) return true; + if (value.includes('calc(') || value.includes('rgba')) return true; return false; }