Skip to content

Commit f282d5e

Browse files
committed
fix: css in catalogue
1 parent 1e502f4 commit f282d5e

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/Common/RJSF/rjsfForm.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.rjsf-form-template {
2-
&__container {
3-
margin-right: 28px;
2+
&__container > div:first-child {
43
padding: 20px;
4+
margin-right: 28px;
5+
}
6+
7+
&__field, &__field--error {
8+
grid-template-columns: 250px 1fr;
59

610
input.form__input {
711
padding: 6px 8px;
@@ -38,16 +42,18 @@
3842
background: transparent;
3943
z-index: -1;
4044
position: absolute;
45+
/* NOTE: this overlay is exactly 6px wider & taller on all sides
46+
* therefore the 12px (6 + 6) on height & width */
4147
height: calc(100% + 12px);
4248
width: calc(100% + 12px);
4349
content: '';
4450
transition: all 100ms ease-out;
4551
}
4652

4753
& > .remove-btn__container:hover {
48-
stroke: var(--R500);
54+
fill: var(--R500);
4955
path {
50-
stroke: var(--R500);
56+
fill: var(--R500);
5157
}
5258
}
5359

src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ import { ReactComponent as CrossIcon } from '../../../../Assets/Icon/ic-cross.sv
2121

2222
export const RemoveButton = ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => (
2323
<button {...props} type="button" className="dc__outline-none-imp p-0 dc__transparent flex cursor" title="Remove">
24-
<CrossIcon className="icon-dim-16 scn-6" />
24+
<CrossIcon className="icon-dim-16 fcn-6" />
2525
</button>
2626
)

src/Common/RJSF/templates/FieldErrorTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const FieldErrorTemplate = ({ errors = [], idSchema }: FieldErrorProps) =
2424

2525
return (
2626
errors.length > 0 && (
27-
<span className="display-grid rjsf-form-template__field dc__gap-12" id={id}>
27+
<span className="display-grid rjsf-form-template__field--error dc__gap-12" id={id}>
2828
{errors
2929
.filter((elem) => !!elem)
3030
.map((error, index: number) => (

0 commit comments

Comments
 (0)