I use the jQuery user interface button throughout my page, however I have not found a way around what seems like a simple problem. I want some of my buttons to be smaller than others, it should be as simple as setting the CSS of the button text to something like font: .8em; However, jQuery UI takes your DOM element and wraps it:
<button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"> <span class="ui-button-text">Button Label</span> </button>
So, if I have <button class="small-button">Small button!</button> , jQuery will put the text in the child range. Any font size assigned to the small-button class will be ignored.
There should be a way around this without hacking, as jQuery does its buttons. Any ideas?
javascript jquery jquery-ui jquery-ui-button
chum of chance Aug 01 2018-10-10T00: 00Z
source share