Visit your Joomla admin site and Inject the following html in the <div id="system-message-container">
<joomla-alert type="warning" close-text="Close" dismiss="true" style="animation-name: joomla-alert-fade-in;" role="alert">
<button type="button" class="joomla-alert--close" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="alert-heading">
<span class="warning"></span>
<span class="visually-hidden">Warning</span>
</div>
<div class="alert-wrapper">
<div class="alert-message"><div class="d-flex">
<a class="btn btn-primary ms-4" href="#someModal" data-bs-toggle="modal">Some Action</a>
</div>
</div>
</div>
</joomla-alert>
The button's text to be easily readable.
The button's text can hardly be read.
J5.1.0
Seems to be caused by that css:
#system-message-container joomla-alert[type="warning"] a {
color: var(--state-warning-text);
text-decoration: underline;
}
Found in the: media/templates/administrator/atum/css/vendor/joomla-custom-elements/joomla-alert.min.css
Title |
|
||||||
Labels |
Added:
No Code Attached Yet
|
Thank you!.
Though, the issue is opened for a fix in the 1st place.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-06-01 12:53:08 |
Closed_By | ⇒ | rdeutz |
Try:
output:
FWIW
<a>
should not be used for actions, the semantically correct tag is<button>