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 sure our css do not override swagger-ui's

Christophe Bliard00962be965ca
diff --git a/frontend/src/app/features/api-docs/swagger-ui/swagger-ui.component.sass b/frontend/src/app/features/api-docs/swagger-ui/swagger-ui.component.sass
index d33add0f8fb..346c5b8e814 100644
--- a/frontend/src/app/features/api-docs/swagger-ui/swagger-ui.component.sass
+++ b/frontend/src/app/features/api-docs/swagger-ui/swagger-ui.component.sass
@@ -1,5 +1,10 @@
-div code
- all: initial
- color: white
-
+code
+ // prevent our styles from overriding the ones from swagger-ui
+ // (especially visible when looking at response example values)
+ background-color: inherit
+ border: inherit
+ color: inherit
+ font: inherit
+ line-height: 1.5
+
@import "~swagger-ui/dist/swagger-ui.css"