From a84b845f8f7e956ce6ccaf47083529ba532f5b77 Mon Sep 17 00:00:00 2001 From: dvogel Date: Fri, 3 Feb 2023 13:16:30 +0100 Subject: [PATCH] Add a rel attribute to the main button of DropdownIconSplitButton ERM30832 --- bootstrap.php | 5 ++++- .../dropdown-icon-split-button.mustache | 4 ++-- src/Component/SimpleDropdownIconSplitButton.php | 16 ++++++++++++---- src/IDropdownIconSplitButton.php | 5 +++++ src/Renderer/DropdownIconSplitButton.php | 8 ++++++++ 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index c92cb70..1d59219 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -150,7 +150,10 @@ 'dropdown' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\Dropdown', 'dropdown-button' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownButton', 'dropdown-icon' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownIcon', - 'dropdown-icon-split-button' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownIconSplitButton', + 'dropdown-icon-split-button' => [ + 'class' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownIconSplitButton', + 'services' => [ 'MainConfig' ] + ], 'dropdown-split-button' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownSplitButton', 'dropdown-split-link' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownSplitLink', 'dropdown-itemlist' => 'MWStake\\MediaWiki\\Component\\CommonUserInterface\\Renderer\\DropdownItemlist', diff --git a/resources/templates/dropdown-icon-split-button.mustache b/resources/templates/dropdown-icon-split-button.mustache index 76f3f9a..58840f9 100644 --- a/resources/templates/dropdown-icon-split-button.mustache +++ b/resources/templates/dropdown-icon-split-button.mustache @@ -1,9 +1,9 @@