Skip to content

Commit

Permalink
Update default.php (#24000)
Browse files Browse the repository at this point in the history
For A11Y reasons, as reported by Stefan Wadja and because in Web browser situations, like this, a 'Cancel' button is not needed, as the user can simply navigate away, if they don't want to commit, the 'Cancel' button is removed. In any case, there is no 'cancel' type for the <button> element, in HTML, so this can only be done by using CSS to make a <a> element look like a button 0r by making a normal button and adding Javascript. Neither is a good solution for an unnecessary button.

Therefore, it is being removed.
  • Loading branch information
tarot-ray authored and wilsonge committed Jun 23, 2019
1 parent 541cefa commit 642c0e8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/com_users/tmpl/registration/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
<button type="submit" class="com-users-registration__register btn btn-primary validate">
<?php echo Text::_('JREGISTER'); ?>
</button>
<a class="com-users-registration__cancel btn btn-danger" href="<?php echo Route::_(''); ?>">
<?php echo Text::_('JCANCEL'); ?>
</a>
<input type="hidden" name="option" value="com_users">
<input type="hidden" name="task" value="registration.register">
</div>
Expand Down

0 comments on commit 642c0e8

Please sign in to comment.