Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7237 closed bug (notabug)

UI Buttons lack custom css class option. Prevents styling per-button action.

Reported by: harking Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.button Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:


I couldn't find a way to add a css class to a button. Needed to provide custom styling to each button depending on action (Confirm: green, Cancel: red)

Change History (5)

comment:1 Changed 12 years ago by Scott González

Resolution: invalid
Status: newclosed

That's what .addClass() is for.

comment:2 Changed 12 years ago by harking

My motivation was to be able to set a class on a button when creating a dialog via

Do you know of another way I can set the class on those?

Would a better patch be to modify dialog() so that it can take a class option when creating the buttons?

comment:4 Changed 12 years ago by harking


Documentation was a vague that extra keys in the options for buttons would be added to the attributes of the button.

I'd love to update them but I couldn't find where to edit the docs or submit a patch for them. Links from didn't direct me to contributing.

comment:5 Changed 12 years ago by Scott González

Documentation is locked down due to spam issues. Feel free to file a ticket to improve the documentation and include your proposed text. I, or someone else with access, can apply your change.


Note: See TracTickets for help on using tickets.