ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Block Buttons and Full Width Block Button not working on input tag

Open JonathanHindi opened this issue 12 years ago • 3 comments

I noticed that Block Buttons .button-block and Full Width Block Button .button-full does not apply the styles to the input tag.

From line 213 to line 217 in scss/_button.scss specify that it should be only applied on the button tag instead of the .button class.

Thanks

JonathanHindi avatar Dec 19 '13 02:12 JonathanHindi

Could you post some example HTML you're describing?

adamdbradley avatar Dec 19 '13 03:12 adamdbradley

For example an HTML form which have a submit input at the end, I can't use the button here for some reasons.

<input type="submit" id="submit" class="button button-block button-positive" name="op" value="Submit">

The above should appear in block size but it appear as a normal width button. Instead if I added the following it will take the full size:

<button class="button button-block button-positive">Submit</button>

Screenshot: The first is input[type="submit"] the second is a <button> tag.

screen shot 2013-12-19 at 12 17 46 pm

JonathanHindi avatar Dec 19 '13 10:12 JonathanHindi

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 03:09 ionitron-bot[bot]