From 2d7db2d44183f948ce2eade38b925a4649a4e4b1 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Tue, 20 Jun 2023 14:51:19 +0000 Subject: [PATCH] [FIX] web: keep compatibility for btn-fill The class btn-fill has been move from the common bootstrap review and only set in frontend. So we add the class in the backend to keep the existing HTML fields containing btn-fill- class correctly working. As there were small differences btween btn and btn-fill, we only use the same design. Since the classe btn-fill has been moved to only closes odoo/odoo#125966 X-original-commit: 8ffc79624eef80d3dfdb9ad38c6faea1187a3b70 Signed-off-by: Pierre Masereel (pim) --- .../src/scss/bootstrap_review_backend.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/addons/web/static/src/scss/bootstrap_review_backend.scss b/addons/web/static/src/scss/bootstrap_review_backend.scss index 15f123a7a5e..704f3d605b1 100644 --- a/addons/web/static/src/scss/bootstrap_review_backend.scss +++ b/addons/web/static/src/scss/bootstrap_review_backend.scss @@ -42,6 +42,22 @@ } } +@each $-name, $-value in $o-btns-bs-override { + .btn-fill-#{$-name} { + @include button-variant( + o-safe-get($-value, background), + o-safe-get($-value, border), + o-safe-get($-value, color), + o-safe-get($-value, hover-background), + o-safe-get($-value, hover-border), + o-safe-get($-value, hover-color), + o-safe-get($-value, active-background), + o-safe-get($-value, active-border), + o-safe-get($-value, active-color), + ); + } +} + // 2. Render '$theme-colors' buttons excluding the ones already generated // using the custom maps. @each $-name, $-color in $theme-colors {