question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with styling because of "wrapper"

See original GitHub issue

Hello,

I’m having a few issues with the styling of this plugin because of “wrapper”.

I’m incorporating this plugin into my website and this is what the issue looks like:

issue1

There is a big space between the name of the field and the component “textbox”

{
   "fields":[
      {
         "featured":false,
         "label":"Firstname",
         "disabled":false,
         "readonly":false,
         "model":"firstname",
         "type":"input",
         "inputType":"text"
      },
      {
         "featured":false,
         "label":"Second Name",
         "disabled":false,
         "readonly":false,
         "model":"second-name",
         "type":"input",
         "inputType":"text"
      },
      {
         "rows":4,
         "hint":"Max 500 characters",
         "max":500,
         "label":"Description",
         "placeholder":"",
         "model":"description",
         "type":"textArea"
      }
   ]
}

Here is a picture of the error css

issue2

I am using the “Uplon” theme from themeforest.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
sergiocastrovalecommented, Dec 4, 2017

I agree with this - had to restyle my wrapper class myself because of it. At least prefix all classes with “vfg-” - that would allow for easier styling and would definitely solve these issues.

4reactions
zoul0813commented, Nov 16, 2017

I think we can probably provide some more advanced form level options, which would allow devs to override or amend their own classes at every level of the hierarchy. We could also prefix all the internal classes with something like “vfg-“ so there are no conflicts with popular frameworks such as bootstrap.

For example a “wrapperClass” property that defaults to “vfg-wrapper”, but can be changed to anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling Layout Wrappers In CSS - Ahmad Shadeed
When the viewport size is less than the maximum width of the wrapper, this will cause the wrapper edges to stick to the...
Read more >
The Best Way to Implement a "Wrapper" in CSS
Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The...
Read more >
Is a wrapper <div> a violation of content-style separation?
It certainly doesn't violate the separation of style and content because it provides CSS with a block to do something with.
Read more >
Wrapping and breaking text - CSS: Cascading Style Sheets
This property will break the word at the point it overflows. It will cause a break-even if placing the word onto a new...
Read more >
Enable styling of next/image outer wrapper #22861 - GitHub
I found this thread because I have a container that has margins and I want the image inside to fit flush with its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found