isso-comments / isso

a Disqus alternative
https://isso-comments.de
MIT License
5.04k stars 438 forks source link

Feature request: Allow adding CSS classes to generated HTML elements #1003

Open gflohr opened 6 months ago

gflohr commented 6 months ago

Checklist

What is not working?

I want to style elements not with the class names that isso provides but my own ones. For example, I want the submit button to have the classes "btn btn-primary". That way, I can use a CSS framework, for example Bootstrap which defines tons of rules for these classes, so that just copying the CSS is not really an option.

Several ideas how this could be implemented:

ix5 commented 4 months ago

Might be possible to implement this using the data-isso-* attributes similar to translation overrides.

Features like this (especially hooking into some event handler) would require a re-thinking of how the client currently works. Feel free to propose a better extension/hooking mechanism than the current state.

See also https://github.com/isso-comments/isso/issues/894