Skip to content

Commit

Permalink
feat: add carbonization to document preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Dec 12, 2024
1 parent 9b97770 commit 6111f5a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/form-js-carbon-styles/src/carbon-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1395,3 +1395,24 @@
}
}
}

// Document preview ////////////

.fjs-container .fjs-form-field-documentPreview {
.fjs-documentPreview-single-document-container {
border-radius: 0;
}

.fjs-documentPreview-download-button {
border-radius: 0;
background-color: var(--cds-background);
border-color: var(--cds-button-tertiary);
color: var(--cds-button-tertiary);
cursor: pointer;

&:focus {
outline: 2px solid var(--cds-focus);
outline-offset: -2px;
}
}
}
8 changes: 8 additions & 0 deletions packages/form-js-viewer/assets/form-js-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,14 @@
border: 1px solid var(--color-borders-documentPreview);
background: var(--color-layer);
padding: 0;

svg {
color: var(--color-text);
}

svg:focus {
outline: none;
}
}

.fjs-container .fjs-documentPreview-non-preview-item {
Expand Down

0 comments on commit 6111f5a

Please sign in to comment.