diff options
| author | Romain Derie <rde@odoo.com> | 2018-10-11 14:25:34 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-10-11 14:25:34 +0000 |
| commit | 11c950ef23faefb5b826c7fb6eb0dccb8e345ca0 (patch) | |
| tree | a1785af599559dd41bca19b2398525552a7068e1 /addons | |
| parent | ee67457ad113c7300f957b205a79d565d244ef21 (diff) | |
[FIX] web_editor: bs4 '.is-invalid' not applied in technical modal
Adding bs4 `.is-invalid` class is supposed to add red borders on the
`form-control` element.
But the mixin `o-w-preserve-forms` prevents that style to be applied as it adds
`border: 1px solid $o-we-color-text-light;` on `.form-control`.
As the mixin selector has more strength (specificity), the bs4 is simply not
applied.
This is the case for `form-control` inside `o_technical_modal`.
closes odoo/odoo#27691
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web_editor/static/src/scss/web_editor.variables.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index 2d14a069b08..6c4336581a9 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -112,6 +112,9 @@ $o-we-switch-inactive-color: $o-we-color-paper !default; color: #555; background-color: #fff; border-radius: 0; + &.is-invalid { + border-color: $danger; + } } .was-validated { |
