Code Monkey home page Code Monkey logo

Comments (5)

marina-mosti avatar marina-mosti commented on May 29, 2024 1

Hi @ClemCornet , SchemaForm is a special component which should really not be used for displaying elements.
This would have to be modified with a plugin I think, or possibly modifying the schema to contain parent elements for the field groups.

This is a very important thing for a11y though, so I will mark it as enhancement so we can figure out a way to better address field sets natively

from formvuelate.

ClemCornet avatar ClemCornet commented on May 29, 2024 1

Hello @marina-mosti , thank you for your responsiveness and for this future improvement. Meanwhile, I'll try to modify my schema ;)

from formvuelate.

pau-santesmasses avatar pau-santesmasses commented on May 29, 2024 1

+1 for fieldsets or some other type of grouping (perhaps <section>?)

@ClemCornet in case it helps, my current solution is to add a class and display the label via a pseudo element. Not ideal, but it works for now.

Something like:

.section::before {
  content: attr(label);
}

from formvuelate.

4KDA avatar 4KDA commented on May 29, 2024

Hey!
@marina-mosti, what do you say if I make it possible to add any elements to the forms. For example div or h3 with some text or just any custom component. This will allow you to split the form as desired, for example, using custom separators or group names. I think this will solve this issue. Can I get a merge?

ex
image

from formvuelate.

marina-mosti avatar marina-mosti commented on May 29, 2024

Just use higher level components that contain your labels and header tags and put them in the schema

from formvuelate.

Related Issues (20)

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.