- Issue created by @bruno_nct
- 🇮🇳India Tirupati_Singh
Hi @bruno_nct, the issue is occurring due to the classes
password-confirm, password-field
and to add multiple classes you have to separate classes using space instead ofcomma(,)
. And there's no need to add class in theEnter the form class here.
field of the module configuration. This field is provided to add custom class to thepassword view icon
to design it using CSS. So if you want to use this module to show/hide password field value then simply add theuser_login_form, user_form
inEnter the form id(s) here.
field and leave theEnter the form class here.
field as it is.And if you want to add multiple classes then separate each classes with space instead of separating it with comma(,) like this
password-confirm password-field
.I hope this will help in resolving your issue.
- 🇫🇷France bruno_nct
Hello,
Thank you for your quick response. I have applied the modifications and here is the result:Export of the configuration:
_core:
default_config_hash: oQhVT7y0......
form_ids: 'user_login_form,user_form,user_pass'
span_classes: ''The display is correct for the administrator account as shown in the image below using the Claro 10.3.0 theme (administration theme).
The display does not work on the Bootstrap Barrio 5.5.12 theme as shown in the image below.
However, the display of the HTML code below shows that the show/hide password icon is present, but it is not displayed on the screen.
When I apply the following configuration (which is a mistake for span_class), the display of the show/hide icon is no longer hidden on the Bootstrap Barrio 5.5.12 theme:
_core:
default_config_hash: oQhVT7y0lV.....
form_ids: 'user_login_form,user_form,user_pass'
span_classes: 'password-confirm password-field'
Does this mean that the proper functioning of the module depends on the theme used?
Best regards
- 🇩🇪Germany anacolautti
Hi everyone.
First of all, thank you for your interest in this module, and the dedication you spent in creating this issue.
I installed the Bootstrap Barrio → theme, version 5.5.16 on a Drupal 10.3.2 and enabled the View Password module (tried both the dev and the 6.0.4 versions) with the default settings. I don't see the issue you're describing. This is what I see:
To investigate further, I need a bit more help from you, because, I cant fix something that I don't see broken myself.
Could you check which styles are being applied to the Icon and its containers, both with and without extra classes?
- 🇩🇪Germany anacolautti
Also, I just noticed when reviewing this other issue 💬 crosseye location Active , that this might be related to the display style of the button. Please check this comment 💬 crosseye location Active to see if this helps us find the issue.
- Status changed to Postponed: needs info
5 months ago 6:46pm 9 August 2024 - Status changed to Closed: cannot reproduce
about 2 months ago 5:57pm 3 November 2024 - 🇩🇪Germany anacolautti
I'm closing this issue because of inactivity. Feel free to reopen it if needed.