-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Why fieldset as .form-group instead of div's? #17248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC: @patrickhlauke |
Using |
There is/was some problem with fieldset. I don't remember exactly what. Maybe that it cannot be hidden/collapssed/.. |
historically, i seem to remember |
Issue in Firefox is still present. If this is at all important, would advise not recommending it in documentation for this reason, and using This is a form group This happens when you change the Note that this is a later iteration: at first, the entire Through a combination of wrapping things in extra elements, and applying explicit widths, you can get fairly close to the Note I'm basing this almost entirely on usage of |
@DanCouper you say "issue in firefox is still present", but from what I can see nothing has actually been discussed in this thread about firefox specifically, nor the specific problem you're seeing with could i ask that you open a separate issue specifically for this problem you're having, and also post a reduced test case in jsfiddle or similar? |
Sorry about this, but I fully realise nothing has been done - the [admittedly quite detailed] comment is very specifically in response to your comment directly above it which is definitely specifically about Firefox, following on directly from a comment by @mvrhov. Of course the issue is still present: it's a Firefox layout algorithm issue, not a Bootstrap issue - the parent question is asking why
My comment's just a demonstration of the issue: it focusses on how it breaks in flex, and I assume there are other gotchas. It's a comment here, because this is where it should be. Sorry if that was slightly blunt, I'm just a bit perplexed by the response given my comment was a direct response to yours. Anyhoo, I'll put together a set of cases in a JSFiddle as demonstration & open another issue when I'm back in work tomorrow :) |
sorry, didn't mean to sound rude (but re-reading my response, i was rather short, sorry). in fairness, it's nearly 4 months since we last looked at this thread, so it wasn't quite obvious to me what issue in firefox you were referring to. anyway, makes sense now. |
No probs, reading back it's my fault, it reads as a bug report. I think it an issue, if very minor, but worth noting (esp for new devs) as it's subtle & very annoying & I think it's likely to crop up a bit more for people moving toward developing in flexbox + who using Firefox. Not 100% sure though so I'll try a fairly comprehensive set of cases to test. |
Fixed by #19277. |
Hi!
In Components / Forms / Form controls I noticed that "form-group" class is on the "fieldset" tag, instead of "div" like it was earlier. I thought that fieldset is meant to group few controls in one group (like group weight and growth in one fieldset called BMI), not for single form control. And radios are not grouped with fieldset tag - but I found on Mozilla Developer Network and H71: Providing a description for groups of form controls using fieldset and legend elements that radios should be wrapped in fieldset tag.
Why fieldset tag is used instead of div's, which IMO is incorrect (of course I am not 100% expert :) I only place here my thougths) or am I wrong about it and it should be as is in docs now?
The text was updated successfully, but these errors were encountered: