• Hi,

    I have disabled the “Form” styles in Caldera Forms admin to use the theme default ones.

    However, I’ve noticed that there are some colors and other non layout related styles in assets/css/caldera-grid.css file which overrides the theme default styles. Is there some specific reason for these?

    Here is example from the grid stylesheet:

    .caldera-grid button,
    .caldera-grid input,
    .caldera-grid optgroup,
    .caldera-grid select,
    .caldera-grid textarea {
      color: inherit; /* Why this? */
      font: inherit; /* Why this? */
      margin: 0;
    }
    

    Thanks!

    Oliver

    https://www.ads-software.com/plugins/caldera-forms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor David Cramer

    (@desertsnowman)

    Hi there.

    Initially, color and font was not set to inherit. But I got many support issues regarding using forms in the footer and widgets areas not working. This is because those areas are seldom styled to have forms and the footer in many themes are dark. This made forms on many sites having white text on a white input background. And therefore giving the impression that the form was not working.

    This solved it for many of the support queries. If this is giving you issues, I recommend setting a custom class on the fields or simply adding an !important in your theme. in this case the important is justified.

    Thread Starter WebMan Design | Oliver Juhas

    (@webmandesign)

    Hi,

    I understand. Though that is a pure theme styling issue, not your fault. I would personally deal with this by suggesting a custom CSS for such cases (you can create a general one and put it into plugin’s FAQ section for example) rather than to putting the styles into the plugin directly. That way you won’t create an issue with properly styled themes, I think.

    Anyway, I’ve resolved this in my theme so.

    Thanks!

    Oliver

    BTW: I don’t like using !important, instead just use higher CSS selector specificity.

    Plugin Contributor David Cramer

    (@desertsnowman)

    I agree! but a user is not a theme designer. and by adding a simple line that can help most people, then let it be so.

    And yes, the !important is not ideal, But its perfectly valid when someone doesn’t know what about specifying a higher selector is.

    Glad it’s sorted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Grid stylesheet contains colors’ is closed to new replies.