Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Copy classes from legend for controlgroup label #5351

Closed
aristotelos opened this issue Dec 6, 2012 · 1 comment
Closed

Copy classes from legend for controlgroup label #5351

aristotelos opened this issue Dec 6, 2012 · 1 comment

Comments

@aristotelos
Copy link

When a controlgroup is created from a input radio set, the <legend> element of the <fieldset> is converted to a <div>. However, its classes are not copied.

A simple edit to the code can make this working:

if ( grouplegend.length ) {
        // Replace legend with more stylable replacement div
        $( "<div role='heading' class='ui-controlgroup-label'>" + grouplegend.html() + "</div>" ).insertBefore( $el.children( 0 ) ).addClass(grouplegend.attr('class'));
        grouplegend.remove();
@jaspermdegroot
Copy link
Contributor

@aristotelos

Thanks for reporting the issue. I agree we have to look at porting classes over to the enhanced elements in cases like this. There is an open ticket for this: #3577.

I am closing this ticket as duplicate and will comment there that we also have to look at checkbox/radio controlgroups.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants