[jira] [Commented] (TOBAGO-1776) Style RadioButton/Checkbox only by CSS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (TOBAGO-1776) Style RadioButton/Checkbox only by CSS

My Faces - Dev mailing list

    [ https://issues.apache.org/jira/browse/TOBAGO-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123517#comment-16123517 ]

Hudson commented on TOBAGO-1776:

SUCCESS: Integrated in Jenkins build Tobago Trunk #975 (See [https://builds.apache.org/job/Tobago%20Trunk/975/])
TOBAGO-1776 Style RadioButton/Checkbox only by CSS
* add an HTML i tag after an input field, which could be styled
* radio buttons / checkboxes are now styled with CSS (hnoeth: [http://svn.apache.org/viewvc/?view=rev&rev=1804797])
* (edit) tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SelectBooleanCheckboxRenderer.java
* (edit) tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SelectManyCheckboxRenderer.java
* (edit) tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SelectOneRadioRenderer.java
* (edit) tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/TobagoClass.java
* (edit) tobago-trunk/tobago-core/src/main/resources/scss/_tobago.scss

> Style RadioButton/Checkbox only by CSS
> --------------------------------------
>                 Key: TOBAGO-1776
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1776
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.4
>            Reporter: Henning Noeth
>            Assignee: Henning Noeth
>            Priority: Minor
> Currently Tobago renders checkboxes and radiobuttons as follows:
> {code}<label>
>   <input type="radio">Text
> </label>{code}
> To style a radio button, pseudo css elements are needed. But input cannot have content. This includes pseudo elements.
> A pseudo element could be created on the label. But the style cannot depend on the status of the input tag, because CSS have not a parent() selector.

This message was sent by Atlassian JIRA