Fix problem where truncated css codes broke color input field