Popup with header and close button can't have rounded corners?
I think this might be a CSS bug in the popup styles.
The code is a slight variation on the popup samples in the documentation.
Put this HTML inside a page:
- <a href="#about" data-role="button" data-mini="true" data-rel="popup">About</a>
- <div data-role="popup" id="about" class="ui-popup">
- <a href="#" data-rel="back" data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right" data-theme="a">Close</a>
- <div data-role="header">
- <h1>About</h1>
- </div>
- <div data-role="content">
- <p>Wibble!</p>
- </div>
- </div>
Click the button, and notice that the popup header has square top corners (which stick through the rounded corners of its container). There's a style which applies to .ui-popup.ui-corner-all > .ui-header:nth-child(2) which sets border-radius back to 0; if you override it by putting style="border-top-left-radius:inherit;" on the header, then the rounded corners come back again.
Is this a bug in the CSS, or am I doing something wrong?
Matt