This documentation site is about the unstable (upcoming) Comentario version.  Switch to the stable version »

Attribute: no-fonts

The no-fonts attribute of the <comentario-comments> disables default fonts

The no-fonts attribute of the comments tag allows to disable applying standard Comentario root font (Source Sans Pro) in embedded comments.

If set to true, no font will be applied so all comments will be rendered in the same fonts as the containing page.

Changing the value on-the-fly

This attribute is reactive: changing it on an already-embedded tag applies or removes the default font right away, without reloading the browser page:

document.querySelector('comentario-comments').setAttribute('no-fonts', 'true');

This is a styling-only change: nothing is fetched from the server, no comment is re-rendered, and any comment being written or edited is left untouched.

See also