Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
background: var(--alert-accent-color, transparent);
}

.alert-wrapper {
width: 100%;
}

.alert-link {
color: var(--success, inherit);
}
Expand Down Expand Up @@ -90,5 +94,9 @@
padding: .3rem .3rem .3rem 2rem;
}
}

.alert-message:not(:first-of-type) {
border-top: 1px solid var(--alert-accent-color);
}
}
}
7 changes: 4 additions & 3 deletions build/media_source/system/js/core.es6/message.es6
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@
}

// Add messages to the message box
messageWrapper = document.createElement('div');
messageWrapper.className = 'alert-wrapper';
typeMessages.forEach((typeMessage) => {
messageWrapper = document.createElement('div');
messageWrapper.innerHTML = `<div class="alert-message">${typeMessage}</div>`;
messagesBox.appendChild(messageWrapper);
messageWrapper.innerHTML += `<div class="alert-message">${typeMessage}</div>`;
});
messagesBox.appendChild(messageWrapper);

messageContainer.appendChild(messagesBox);
});
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/system/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<joomla-alert type="<?php echo $alert[$type] ?? $type; ?>" dismiss="true">
<?php if (!empty($msgs)) : ?>
<div class="alert-heading"><?php echo Text::_($type); ?></div>
<div>
<div class="alert-wrapper">
<?php foreach ($msgs as $msg) : ?>
<div class="alert-message"><?php echo $msg; ?></div>
<?php endforeach; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
background: var(--alert-accent-color, transparent);
}

.alert-wrapper {
width: 100%;
}

.alert-link {
color: var(--success, inherit);
}
Expand Down Expand Up @@ -90,5 +94,9 @@
padding: .3rem .3rem .3rem 2rem;
}
}

.alert-message:not(:first-of-type) {
border-top: 1px solid var(--alert-accent-color);
}
}
}