Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Make '-error' class more specific to avoid unwanted side effects

Henriette Darge7dce128129c2
diff --git a/app/assets/stylesheets/openproject/_generic.sass b/app/assets/stylesheets/openproject/_generic.sass
index 28b4d80c4cd..d0158698b22 100644
--- a/app/assets/stylesheets/openproject/_generic.sass
+++ b/app/assets/stylesheets/openproject/_generic.sass
@@ -117,5 +117,5 @@
.-no-z-index
z-index: 0 !important
-.-error
+.-error-font
color: $content-form-error-color !important
diff --git a/frontend/src/app/components/resizer/wp-resizer.component.ts b/frontend/src/app/components/resizer/wp-resizer.component.ts
index 5a502c8afd5..5e624bb8b03 100644
--- a/frontend/src/app/components/resizer/wp-resizer.component.ts
+++ b/frontend/src/app/components/resizer/wp-resizer.component.ts
@@ -211,12 +211,12 @@ export class WpResizerDirective extends UntilDestroyedMixin implements OnInit, A
}
private manageErrorClass(shouldBePresent:boolean) {
-   if (shouldBePresent && !this.resizer.classList.contains('-error')) {
-    this.resizer.classList.add('-error');
+   if (shouldBePresent && !this.resizer.classList.contains('-error-font')) {
+    this.resizer.classList.add('-error-font');
  }
- if (!shouldBePresent && this.resizer.classList.contains('-error')) {
- this.resizer.classList.remove('-error');
+ if (!shouldBePresent && this.resizer.classList.contains('-error-font')) {
+ this.resizer.classList.remove('-error-font');
}
}
}