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 authored and tischsoic committed Oct 2, 2023
1 parent bf3e33c commit 96e3b02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 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 Down
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 96e3b02

Please sign in to comment.