https://bugzilla.wikimedia.org/show_bug.cgi?id=21065
Summary: Format complete checkbox items using class parameter
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The class parameter in the field tag for type=checklist applies only to the
<input . . ./> tag, or the check box itself. As written, the <span
class="checkboxSpan"> actually determines the formatting of the whole
selection. Would it be better if the class parameter applied to the entire
<span> rather than only to the <input . . ./> tag?
This would allow the custom formatting of each checklist field by allowing a
class to be specified rather than the entire wiki by modifying the
span.checkbox css style.
One example of this modification would be to allow a vertical checkbox list
when needed (rather than defaulting the entire wiki to vertical checkboxes)
Example:
{{{field|Checklist|input type=checklist|class=checkboxSpanVertical}}}
When coupled with a corresponding class in MediaWiki:Common.css such as
<pre>
/***** 6. SW Forms - custom formatting *****/
span.checkboxSpanVertical {display:block;}
</pre>
I don't think the intention of the class was to format only the actual checkbox
(without formatting the text), this just corrects the problem.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l