Skip to content

Commit ddc7c7e

Browse files
AliKdhim87Yolijn
authored andcommitted
fix: fix the formio-conten style
1 parent c7e9a1f commit ddc7c7e

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

.changeset/gorgeous-jokes-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@frameless/pdc-frontend": patch
3+
---
4+
5+
Los het stijlprobleem van het Vormgeving-informatietekstblok in OpenForms op ([GitHub Issue frameless/strapi#881](https://github.com/frameless/strapi/issues/881)).

apps/pdc-frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@tanstack/react-query": "4.29.25",
3434
"@utrecht/component-library-css": "4.2.0",
3535
"@utrecht/component-library-react": "5.0.0",
36-
"@utrecht/design-tokens": "1.1.0",
36+
"@utrecht/design-tokens": "2.4.0",
3737
"@utrecht/web-component-library-react": "1.3.0",
3838
"accept-language": "3.0.18",
3939
"classnames": "2.3.3",
@@ -58,6 +58,7 @@
5858
"@utrecht/focus-ring-css": "1.1.0",
5959
"@utrecht/form-label-css": "1.1.0",
6060
"@utrecht/table-css": "1.4.0",
61+
"@utrecht/spotlight-section-css": "1.6.0",
6162
"@utrecht/multiline-data-css": "1.1.0",
6263
"@utrecht/textbox-css": "1.2.0",
6364
"eslint-config-next": "13.2.4",

apps/pdc-frontend/src/components/OpenFormsEmbed/OpenFormsEmbed.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@import "~@utrecht/form-label-css/src/mixin";
33
@import "~@utrecht/textbox-css/src/mixin";
44
@import "~@utrecht/table-css/src/html/mixin";
5+
@import "~@utrecht/spotlight-section-css/src/mixin";
6+
57
:root {
68
--of-progress-indicator-padding-block-end: 0;
79
}
@@ -70,3 +72,32 @@
7072
.openforms-body .openforms-body--wysiwyg {
7173
@include utrecht-html-table;
7274
}
75+
76+
.openforms-formio-content {
77+
&--info {
78+
--of-formio-content-info-border-inline-start-style: none;
79+
@include utrecht-spotlight-section;
80+
@include utrecht-spotlight-section-type("info");
81+
}
82+
&--warning {
83+
--of-formio-content-warning-border-inline-start-style: none;
84+
@include utrecht-spotlight-section;
85+
@include utrecht-spotlight-section-type("warning");
86+
}
87+
&--error {
88+
--of-formio-content-error-border-inline-start-style: none;
89+
@include utrecht-spotlight-section;
90+
@include utrecht-spotlight-section-type("warning");
91+
}
92+
&--success {
93+
--of-formio-content-success-border-inline-start-style: none;
94+
@include utrecht-spotlight-section;
95+
@include utrecht-spotlight-section-type("ok");
96+
}
97+
&--success,
98+
&--info,
99+
&--warning,
100+
&--error {
101+
flex-direction: column;
102+
}
103+
}

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8252,6 +8252,11 @@
82528252
resolved "https://registry.yarnpkg.com/@utrecht/design-tokens/-/design-tokens-1.1.0.tgz#0377dbfac70564fc8fc33f9ad53323351f83004e"
82538253
integrity sha512-1P9aVSL5xlBx2sFEzm1v+obgAPvwiLj4dg0vAZnFxLF6ZLbPPu0kP+tQhW3Gj945DU3qkwL/tIuimObYulYVAg==
82548254

8255+
"@utrecht/design-tokens@2.4.0":
8256+
version "2.4.0"
8257+
resolved "https://registry.yarnpkg.com/@utrecht/design-tokens/-/design-tokens-2.4.0.tgz#e72ac3b1b2ae0f0794c79d249a1c475480caf222"
8258+
integrity sha512-TPLbXIgNOmoNbl6eTibBGkJ8sIH/8C77Bgot0LyLBe95/CQMCy9t172uB8C2SrtTKBsrxJwQhIUkHZ3YCGPvyA==
8259+
82558260
"@utrecht/fieldset-react@1.0.2":
82568261
version "1.0.2"
82578262
resolved "https://registry.yarnpkg.com/@utrecht/fieldset-react/-/fieldset-react-1.0.2.tgz#b126b7bc0c77c6037dc7e06812002096efbd600f"
@@ -8335,6 +8340,11 @@
83358340
dependencies:
83368341
clsx "2.1.1"
83378342

8343+
"@utrecht/spotlight-section-css@1.6.0":
8344+
version "1.6.0"
8345+
resolved "https://registry.yarnpkg.com/@utrecht/spotlight-section-css/-/spotlight-section-css-1.6.0.tgz#4966e3e6eba2eda10d2dd357bc12f65455de221e"
8346+
integrity sha512-dUKcskHCIbzbJKjsd591ogKqfbQeoDVgOnNUZcT80hz3Fdj+84/axQF4ZccuxyhJ7oRNdJlr2wnx9BzvkQCfJg==
8347+
83388348
"@utrecht/table-css@1.4.0":
83398349
version "1.4.0"
83408350
resolved "https://registry.yarnpkg.com/@utrecht/table-css/-/table-css-1.4.0.tgz#fc675468cd887f301af895f72f26cc4d69fd857d"

0 commit comments

Comments
 (0)