From 496640daa375b2a870a5c8055817f4cec2950872 Mon Sep 17 00:00:00 2001 From: Dariusz Szut Date: Fri, 25 Oct 2024 13:00:19 +0200 Subject: [PATCH] IBX-7600: Fixed color of split button in edit mode --- src/bundle/Resources/public/scss/_split-button.scss | 9 +++++++++ .../views/themes/admin/ui/menu/context_menu.html.twig | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/bundle/Resources/public/scss/_split-button.scss b/src/bundle/Resources/public/scss/_split-button.scss index 465c6030b4..43762afb1e 100644 --- a/src/bundle/Resources/public/scss/_split-button.scss +++ b/src/bundle/Resources/public/scss/_split-button.scss @@ -50,4 +50,13 @@ } } } + + &--filled-info { + .ibexa-split-btn { + &__split { + display: block; + background: $ibexa-color-white; + } + } + } } diff --git a/src/bundle/Resources/views/themes/admin/ui/menu/context_menu.html.twig b/src/bundle/Resources/views/themes/admin/ui/menu/context_menu.html.twig index 07124ff6b3..1774505135 100644 --- a/src/bundle/Resources/views/themes/admin/ui/menu/context_menu.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/menu/context_menu.html.twig @@ -90,6 +90,10 @@ {%- set split_btn_type = item.extras.primary|default(false) ? 'primary' : 'secondary' -%} {% endif %} + {% if options.primary_split_btn_type is defined and item.extras.primary|default(false) %} + {%- set split_btn_type = options.primary_split_btn_type -%} + {% endif %} + {{ include('@ibexadesign/ui/component/split_btn/split_btn.html.twig', { type: split_btn_type, attr: {