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
2 changes: 2 additions & 0 deletions administrator/modules/mod_login/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class="btn btn-secondary w-100 mt-4 <?php echo $button['class'] ?? '' ?>"
<span class="<?php echo $button['icon'] ?>"></span>
<?php elseif (!empty($button['image'])): ?>
<?php echo $button['image']; ?>
<?php elseif (!empty($button['svg'])): ?>
<?php echo $button['svg']; ?>
<?php endif; ?>
<?php echo Text::_($button['label']) ?>
</button>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/login/default_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<div class="com-users-login__submit control-group">
<div class="controls">
<button type="button"
class="btn btn-secondary <?php echo $button['class'] ?? '' ?>"
class="btn btn-secondary w-100 <?php echo $button['class'] ?? '' ?>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is OK with me. If a third party plugin needs to override the width it can do so with CSS.

<?php foreach ($dataAttributeKeys as $key): ?>
<?php echo $key ?>="<?php echo $button[$key] ?>"
<?php endforeach; ?>
Expand Down
2 changes: 2 additions & 0 deletions modules/mod_login/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ class="btn btn-secondary w-100 mt-4 <?php echo $button['class'] ?? '' ?>"
<span class="<?php echo $button['icon'] ?>"></span>
<?php elseif (!empty($button['image'])): ?>
<?php echo $button['image']; ?>
<?php elseif (!empty($button['svg'])): ?>
<?php echo $button['svg']; ?>
<?php endif; ?>
<?php echo Text::_($button['label']) ?>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function onUserLoginButtons(string $form): array
'id' => $randomId,
'data-webauthn-form' => $form,
'data-webauthn-url' => $url,
'image' => $image,
'svg' => $image,
'class' => 'plg_system_webauthn_login_button',
],
];
Expand Down