?
avatar ReLater
ReLater
1 Aug 2021

Steps to reproduce the issue

  • Edit templates\cassiopeia\templateDetails.xml
  • Line 104 add a close="true" in note field
<field
	name="noteFontScheme"
	type="note"
	close="true"
	description="TPL_CASSIOPEIA_FONT_NOTE_TEXT"
	class="alert alert-warning"
/>
  • Go to administrator/index.php?option=com_templates&view=styles
  • Open Cassiopeia
  • Check alert below field Fonts Scheme
  • It has a close button but that doesn't close the alert.
  • And (I don't care): The close X should be right aligned. And it has 2 x (1 is a svg background).
  • I see the same behaviour in many custom extension settings in the backend where it works without issues in Joomla 3.
<div class="alert alert-warning">
<button type="button" class="btn-close" data-dismiss="alert">×</button>
Some text.
</div>

01-08-_2021_22-17-19

Additional comments

  • No JS errors.
  • I tried a lot, using data-bs-dismiss instead of data-dismiss, added alert-dismissible show classes, forced BS loading. No success.
avatar ReLater ReLater - open - 1 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Aug 2021
avatar Fedik
Fedik - comment - 1 Aug 2021

close="true" does it ever worked? :)

As I see it does not have any js connected

avatar Fedik
Fedik - comment - 1 Aug 2021

okay, it probably missing HTMLHelper::_('bootstrap.alert')

avatar ChristineWk
ChristineWk - comment - 1 Aug 2021

Confirmed. Made the steps above. It's after line 106 [4.0.0-rc6-dev]
screen shot 2021-08-01 at 21 37 04
There is a small x and a big X


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35016.
avatar ReLater
ReLater - comment - 1 Aug 2021

Will write a pr.

avatar ReLater ReLater - change - 1 Aug 2021
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-08-01 22:44:02
Closed_By ReLater
avatar ReLater ReLater - close - 1 Aug 2021
avatar ReLater
ReLater - comment - 1 Aug 2021

Test #35017 please

Add a Comment

Login with GitHub to post a comment