Skip to content

Commit

Permalink
IBX-6467: Richtext field validation is not styled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Sep 19, 2023
1 parent 397ff27 commit d777a7b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/bundle/Resources/public/scss/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,26 @@
}
}

.ibexa-field-edit--ezrichtext {
.ibexa-data-source__richtext.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable) {
border-radius: $ibexa-border-radius $ibexa-border-radius 0 0;
}

&.is-invalid {
.ibexa-label {
color: $ibexa-color-danger;
}

.ibexa-data-source {
border-color: $ibexa-color-danger;
}

.ibexa-data-source__richtext {
background-color: $ibexa-color-danger-100;
}
}
}

.ck {
&.ck-editor__editable_inline {
border: none;
Expand All @@ -257,4 +277,6 @@
max-height: calculateRem(300px);
overflow-y: auto;
}


}
1 change: 1 addition & 0 deletions src/bundle/Resources/public/scss/variables/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $ibexa-color-dark-300: #a0a4a8 !default;
$ibexa-color-dark-200: #cfd1d3 !default;

$ibexa-color-danger: #db0032 !default;
$ibexa-color-danger-100: #fbe5ea !default;

$ibexa-btn-focus-box-shadow: 0 0 0 calculateRem(3px) rgba($ibexa-color-primary, 0.2) !default;
$ibexa-btn-hover-box-shadow: 0 calculateRem(22px) calculateRem(24px) 0 rgba($ibexa-color-danger, 0.2) !default;
Expand Down

0 comments on commit d777a7b

Please sign in to comment.