diff --git a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-chromium-linux.png b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-chromium-linux.png index 343ff8e0a..8ab0ceaf8 100644 Binary files a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-chromium-linux.png and b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-chromium-linux.png differ diff --git a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-firefox-linux.png b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-firefox-linux.png index 1f7fa097c..232b1cbd5 100644 Binary files a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-firefox-linux.png and b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-firefox-linux.png differ diff --git a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-webkit-linux.png b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-webkit-linux.png index c3f532ad6..86a871aa4 100644 Binary files a/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-webkit-linux.png and b/e2e/visual/carbon-styles.spec.js-snapshots/carbon-styles-1-webkit-linux.png differ diff --git a/packages/form-js-viewer/assets/form-js-base.css b/packages/form-js-viewer/assets/form-js-base.css index 94de06a04..0abef512c 100644 --- a/packages/form-js-viewer/assets/form-js-base.css +++ b/packages/form-js-viewer/assets/form-js-base.css @@ -49,6 +49,7 @@ --color-background-active: var(--cds-background-active, var(--color-grey-225-10-75)); --color-layer: var(--cds-layer, var(--cds-layer-01, var(--color-white))); --color-layer-accent: var(--cds-layer-accent, var(--color-grey-0-0-88)); + --color-background-pre: var(--cds-layer, var(--cds-layer-01, var(--color-white))); --color-icon-base: var(--cds-icon-primary, var(--color-black)); --color-icon-inverted: var(--cds-icon-inverse, var(--color-black)); @@ -66,6 +67,7 @@ --color-borders-adornment: var(--cds-border-subtle, var(--cds-border-subtle-01, var(--color-grey-225-10-85))); --color-borders-readonly: var(--cds-border-subtle, var(--color-grey-225-10-75)); --color-borders-inverted: var(--cds-border-inverse, var(--color-grey-225-10-90)); + --color-borders-pre: var(--cds-border-subtle, var(--color-grey-225-10-85)); --color-warning: var(--cds-text-error, var(--color-red-360-100-45)); --color-warning-light: var(--cds-text-error, var(--color-red-360-100-92)); @@ -833,6 +835,13 @@ white-space: nowrap; } +.fjs-container .fjs-form-field-html pre, +.fjs-container .fjs-form-field-text pre { + border: 1px solid var(--color-borders-pre); + background: var(--color-background-pre); + padding: 4px; +} + .fjs-container .fjs-taglist-anchor, .fjs-container .fjs-select-anchor, .fjs-container .fjs-timepicker-anchor {