stcr / subscribe-to-comments-reloaded

Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.
56 stars 32 forks source link

[NF] Ability to Add class name to dropdown select #176

Open sszdh opened 8 years ago

sszdh commented 8 years ago

Hi there,

How can I add a custom class name to the dropdown <select> ?

For example I want to have something like this:

<select name="subscribe-reloaded" id="subscribe-reloaded" class="form-control">
.... 
</select>

Thanks.

sszdh commented 8 years ago

Sad, I think according to this, there is no way to define any additional class name to <select> box! Am I correct?

Thanks.

raamdev commented 8 years ago

@sszdh You don't need to add a class; you can just reference the existing ID:

select#subscribe-reloaded {
/* Styles here */
}
sszdh commented 8 years ago

@raamdev, Yeah I know, but consider you want using bootstrap for UI, then we should dublicate and redefine each Styles!? Don't we?

In my provided example, the form-control class is a defined style for form inputs in bootstrap CSS package.

Thanks

sszdh commented 8 years ago

I think it is good to have a way to add user-defined class name to the controls

Reedyseth commented 8 years ago

I think it is good to have a way to add user-defined class name to the controls

@sszdh Yes this will allow the user to have more control over the style of the dropdown. As for now you could add that class manually and then in the future add the option to add a class to the dropdown.

sszdh commented 8 years ago

@Reedyseth Thanks for your reply.

Reedyseth commented 8 years ago

Thanks for your reply.

@sszdh You're Welcome !