-
Notifications
You must be signed in to change notification settings - Fork 3
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
The CSS rules for form elements should be more flexible to accomodate different ways of structuring valid forms #286
Comments
The issue here is being able to create a custom checkbox by using the One possible way to support the Example HTML <label>
<input type="checkbox" /><span class="label-text">My label</span></input>
</label> Example CSS input[type="checkbox"]+ .label-text::before {
... styles for default state
}
input[type="checkbox"]:checked + .label-text::before {
... styles for checked state
} |
@jhung Can we mark this as #wontfix and close it? |
My pseudo-outsider opinion's that Pinecone should be able to handle valid html, which is what Django and potentially other frameworks generate. My template workaround is having to explicitly loop over the elements, generate tags that mesh with Pinecone's parser, and for now I've lost easy access to other values set in my If Pinecone's a general purpose framework then #wontfix doesn't seem right. If it's for internal use only primarily with WordPress then maybe it's a different story. |
@erictheise Would wrapping the label text as suggested in @jhung's comment work in Django? |
@jhung emailed me with these options on the 23rd: "I took a look at the issue of radios and checkboxes not being styled (see github issue #286) and talked it over with Ned. There are solutions and I have listed the options here in order from simplest to complex.
My suggestion is that we try for option 1, with a goal of eventually supporting option 2 in Pinecone." I followed his first suggestion which involved adding attributes to I should be able to just say This pattern'll need to be implemented for any questions with checkbox or radio button answers. The |
Describe the bug
If a form is constructed in a way other than the
<input>...</input><label>...</label>
pattern, the CSS rule will not apply. For example, if a radio group is structured<label><input>...</input></label>
then it will not appear styled properly.Expected behavior
The current CSS rule
input[type="X"] + label
should be relaxed / expanded to allow for different valid form structures.The text was updated successfully, but these errors were encountered: