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

feature request: data-corners="false" specifyable on input elements #4764

Closed
frequent opened this issue Jul 29, 2012 · 2 comments
Closed

feature request: data-corners="false" specifyable on input elements #4764

frequent opened this issue Jul 29, 2012 · 2 comments

Comments

@frequent
Copy link
Contributor

I'm often constructing sort-of controlgroups by grouping checkboxes or input elements. Like so:

 <div data-role="controlgroup">
     <span class="ui-li ui-li-divider ui-bar-a ui-corner-top"><span class="ui-divider-text">Divider</span></span>
     <input type="button" data-icon="arrow-r" data-iconpos="right" value="do this" class="trigger_do_this" />
     <input type="button" data-icon="arrow-r" data-iconpos="right" value="do that" class="trigger_do_that"  />
     ....
  </div>

While this works most of the times, I'm often ending up with the first input element receiving ui-corner-top and have not really found a way to disable this (excluding Jquery-ing the class away from the wrapping .ui-btn and .ui-btn-inner on pagebeforeshow.

So my idea was to allow data-corners="false" to also be set on the input and if set, to not add any corner classes to the wrapping elements added by JQM. Could maybe be used on other elements as well.

@jaspermdegroot
Copy link
Contributor

@frequent - Thanks. Added a link to this ticket on the wiki page. Closing as a feature request.

@jaspermdegroot
Copy link
Contributor

Removed feature request label because we do the corner styling with CSS now.

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