Giter Club home page Giter Club logo

Comments (5)

martinhbramwell avatar martinhbramwell commented on May 30, 2024

I fixed that specific issue, more or less, with :

div[class="formulate-element-input-wrapper"] button { 
    color: inherit;
    width: inherit;
      etc
      etc
      etc

 }

...but I believe I'd need a long list of those :-(

from vue-formulate-legacy.

justin-schroeder avatar justin-schroeder commented on May 30, 2024

I’ve debated adding some kind of support for inner classes or attributes. Might be worth doing. My main concern is people will use front end frameworks with lots of js layers that I don’t want to support. There is an undocumented way to use your own input elements. But perhaps adding classes wouldn’t be too bad.

from vue-formulate-legacy.

martinhbramwell avatar martinhbramwell commented on May 30, 2024

The issue for me is that this upbeat remark in your docs...

Absolutely zero styles are included so feel free to write your own!

...doesn't go on to say, "(except, the element you'll most want to style is inaccessible)"

:-) See what I mean?

from vue-formulate-legacy.

justin-schroeder avatar justin-schroeder commented on May 30, 2024

I do. Although like I said, this is largely intentional as they are easily styled by hand, just not by frameworks (which was kinda the point). Frameworks like bootstrap for example add lots of js and wrapper elements which vue-formulate will never support – so I suppose use at your own risk. If you do want to write your own styles the .formulate-element-input-wrapper always has a data-classification attribute which indicates the "type" of field, for example (scss):

[data-classification="text"] {
  input {
    // your custom textual input styles
  }
}

[data-classification="button"] {
  input, button {
    // your custom button styles
  }
}

[data-classification="select"] {
  select {
    // your custom select styles
  }
}

However, I also don't think its unreasonable to ask for class names on the actual input element. I'll add some kind of support for this.

from vue-formulate-legacy.

justin-schroeder avatar justin-schroeder commented on May 30, 2024

@martinhbramwell element-classes attribute was added to 0.7.4. Enjoy!

from vue-formulate-legacy.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.