Theme overrides Form field definitions - allows display of Honeypot field

Created on 1 August 2017, over 7 years ago
Updated 27 June 2024, 6 months ago

As we've discussed by email, I am having problems when using the Honeypot module that the supposedly hidden field is displayed on all of my forms.

So as to not repeat everything, complete details of the specific problem I am experiencing- including the resulting HTML code that is generated - can be found in this issue that I opened (which is now closed) in the Honeypot area:

https://www.drupal.org/node/2897690 β†’

As analyzed by the Maintainer of Honeypot, he concluded:

"The problem, as I think you've guessed, is that the W3CSS theme seems to be adding in extra classes to form fields, and likely is adding some extremely opinionated and specific CSS rules that are showing the form field even though Honeypot has an explicit display: none !important; on the field.

"The problem seems to lie in the W3CSS theme in this case, and it's usually not a good idea for any theme or other added CSS to add so much specificity that an '!important' rule could be overridden."

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Rounder

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024