hoscanoa / struts2-bootstrap

Automatically exported from code.google.com/p/struts2-bootstrap
0 stars 0 forks source link

Passing cssClass onto the actual form element #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now cssClass is not passed onto the actual form element, so increasing 
input field length by supplying cssClass="spanX" is not possible.

The provided cssClass is applied to the control-group element instead.

Original issue reported on code.google.com by niko...@conceited.net on 10 May 2012 at 7:26

GoogleCodeExporter commented 9 years ago
Like you see the cssClass is applied to the control-group element,
Because this gives you more flexibility.

Access the control-group via css:
.control-group {
 // your css
}

Acess the form element:
.control-group input {
 // your css
}

Original comment by johgep on 10 May 2012 at 8:55

GoogleCodeExporter commented 9 years ago
So I'd have to either edit the CSS (i.e. add definitions) or try to modify the 
actual input elements by other means? Maybe I am just not getting it but how 
would I do achieve something as described in 
http://twitter.github.com/bootstrap/base-css.html#forms > Extending form 
controls > e.g. "From grid size" without messing with the actual CSS?

Original comment by niko...@conceited.net on 10 May 2012 at 9:03

GoogleCodeExporter commented 9 years ago
You are right, this attributes should be applied directly to the form elements.

Original comment by johgep on 13 May 2012 at 5:05

GoogleCodeExporter commented 9 years ago
Fixed with just released version 1.4.3

Original comment by johgep on 13 May 2012 at 7:00

GoogleCodeExporter commented 9 years ago
As far as I can tell, the cssClass is now used in both control-group AND actual 
input element … which doesn't really work when using suggested spanX classes 
for input width. Any chance for a workaround or fix?

Original comment by niko...@conceited.net on 14 May 2012 at 1:11

GoogleCodeExporter commented 9 years ago
Do you have tried the yesterday released 1.4.3 version?

Original comment by johgep on 14 May 2012 at 7:58

GoogleCodeExporter commented 9 years ago
Okay, I may have been testing on the old version. Will test a few more 
components and if I don't report back in a day or two consider it fixed for 
good.

Original comment by niko...@conceited.net on 14 May 2012 at 8:15