Skip to content

Commit

Permalink
Merge pull request #19 from gsoft-inc/feature/OR-142
Browse files Browse the repository at this point in the history
Feat: [OR-144 - OR-142] Form and Field Rebrand
  • Loading branch information
fraincs authored Oct 17, 2023
2 parents 9b5ac8e + dc01b1e commit 9ba7382
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/field/src/Field.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* LABEL */
.o-ui-field .o-ui-field-label {
grid-area: label;
padding-bottom: var(--o-ui-sp-2);
padding-bottom: var(--hop-space-stack-xs);
}

/* INPUT */
Expand All @@ -28,5 +28,5 @@
/* MESSAGE */
.o-ui-field .o-ui-field-message {
grid-area: message;
padding-top: var(--o-ui-sp-2);
padding-top: var(--hop-space-stack-xs);
}
6 changes: 3 additions & 3 deletions packages/components/src/field/src/FieldMessage.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

/* NEUTRAL */
.o-ui-field-message-neutral {
color: var(--o-ui-text-alias-tertiary);
color: var(--hop-neutral-text-weak);
}

/* VALID */
.o-ui-field-message-success {
color: var(--o-ui-text-alias-success);
color: var(--hop-success-text-weak);
}

/* INVALID */
.o-ui-field-message-error {
color: var(--o-ui-text-alias-alert);
color: var(--hop-danger-text-weak);
}
4 changes: 2 additions & 2 deletions packages/components/src/field/src/Label.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.o-ui-field-label {
color: var(--o-ui-text-alias-primary);
color: var(--hop-neutral-text-weak);
white-space: nowrap;
}

/* REQUIRED */
.o-ui-field-label-required {
margin-left: var(--o-ui-sp-1);
margin-left: var(--hop-space-inline-xs);
}
12 changes: 6 additions & 6 deletions packages/components/src/form/src/Form.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

.o-ui-fieldset-label {
display: inline-block;
font-size: var(--o-ui-fs-4);
font-weight: 600;
color: var(--o-ui-text-alias-primary);
margin-bottom: var(--o-ui-sp-3);
font-size: var(--hop-body-lg-font-size);
font-weight: var(--hop-body-lg-bold-font-weight);
color: var(--hop-neutral-text);
margin-bottom: var(--hop-space-stack-md);
}

.o-ui-form .o-ui-field {
margin-bottom: var(--o-ui-sp-5);
margin-bottom: var(--hop-space-stack-lg);
}

.o-ui-fieldset:last-of-type {
margin-bottom: var(--o-ui-sp-5);
margin-bottom: var(--hop-space-stack-lg);
}

0 comments on commit 9ba7382

Please sign in to comment.