Skip to content

Commit 0600fdf

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-2247: [Cloud] Misleading prompts on Additional Settings section when setting up a Tax Rule:
1 parent 0ce44a8 commit 0600fdf

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

app/code/Magento/Tax/view/adminhtml/layout/tax_rule_edit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<head>
1010
<link src="Magento_Tax::js/bootstrap.js"/>
1111
<css src="jquery/editableMultiselect/css/jquery.multiselect.css"/>
12+
<css src="Magento_Tax::css/tax.css"/>
1213
</head>
1314
<body>
1415
<referenceContainer name="content">

app/code/Magento/Tax/view/adminhtml/templates/rule/edit.phtml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,5 +319,19 @@ $scriptString.= <<<script
319319
window.TaxRateEditableMultiselect = TaxRateEditableMultiselect;
320320
});
321321
script;
322+
$scriptString.= <<<script
323+
require(['jquery'], function($) {
324+
jQuery('.admin__collapsible-block-wrapper').on('click', function () {
325+
if(!this.hasAttribute('open')) {
326+
jQuery(this).addClass('__show');
327+
jQuery(this).children().addClass('__show');
328+
} else {
329+
jQuery(this).removeClass('__show');
330+
jQuery(this).children().removeClass('__show');
331+
}
332+
});
333+
});
334+
script;
335+
322336
?>
323337
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
.admin__collapsible-block-wrapper.__show .admin__collapsible-title.__show:before {
7+
content: '\e615';
8+
font-size: 1.8rem;
9+
position: absolute;
10+
right: 1.3rem;
11+
top: 2.3rem;
12+
}

0 commit comments

Comments
 (0)