1 - SCLogin Module > Login View Settings >
Theme: Default
Layout: Vertical
Show Forgot Username and/or Show Forgot Password: White button (in my case) - Anyway, here the options are:
- None - nothing is shown - Okay
- Black button - btn btn-secondary - Okay
- White button - btn btn-secondary - Bug, It should be btn btn-light - right now it is adding a “icon-white” class to the FA icon class
- Text link - nothing is shown - bug ?!?
The “btn-secondary” class seems to be always fixed for the a showpasswd / a forgot - I add an image
Now, it would be good also to add an option that add just “btn”, but, considering that the “Style” tab feature has yet been added, maybe would be better to have just a “SCLogin Module > Login View Settings > Show Forgot Username and/or Show Forgot Password: Button class” selection (instead of black and white) and by adding a “Username Button CSS Class” / “Password Button CSS Class” fields into the Style tab.
Please, Can you confirm the bug and fix it ?
Please, Where can I manually edit the "btn-secondary" ?
That's fine to me.2 - Into the Style tab would be better to replace the word "button" with "icon" in all the fields you have right now, like:
Show Password Button CSS Class > Show Password Icon CSS Class OR Show Password Icon FA Class
Are you agree ?
I agree with hardcoding a length to stop the shifting width. J4 hardcodes their width to 1.25em, so our default will probably match theirs. As far as within the password field, our default template style is modeled after the standard Joomla login module. J4 has this as a separate button in the group. It may fit some sites to style it inside, but we'd encourage a theme or template override to do this.4 - By using as “showpasswd” FA icon
- Style tab > Show Password Button CSS Class: far fa-eye
- Style tab > Hide Password Button CSS Class: fas fa-eye-slash
When clicking the password field border is moved to the left, you can test it also on your site. It can be fixed by adding a “width: 1.1rem;”:
…/media/sourcecoast/themes/sclogin/default.css
.sclogin.ns-bs2 .field-icon {
position: relative;
z-index: 2;
font-size: 1rem;
width: 1.1rem;
}
Anyway, the “showpasswd” FA icon, for a really better understanding and viewing, it should be inside the "password" field - I add an image - Are you agree ? Please, Do you have a workaround for it ?
I see the problem on my test site - the button heights were off on size compared to the input boxes. I had to adjust line-heights to fix those buttons and the forgot icon. I see it in your image, but it's hard to determine what would be a good universal fix without seeing the same buttons in action on your page.5 - The “forgot” FA icon is not vertically aligned. As far as I see by excluding the “vertical-align: middle;” would solve the issue - Can it be added by default ?
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.