[FIX] extensions: icon_role fa icons

closes odoo/documentation#9243

Signed-off-by: Samuel Lieber (sali) <sali@odoo.com>
This commit is contained in:
Sam Lieber (sali) 2024-05-08 10:44:51 -04:00
parent 258636564e
commit 89f61f900e
2 changed files with 2 additions and 2 deletions

View File

@ -121,6 +121,6 @@ def icon_role(name, rawtext, text, lineno, inliner, options=None, content=None):
) )
error_node = inliner.problematic(rawtext, rawtext, report_error) error_node = inliner.problematic(rawtext, rawtext, report_error)
return [error_node], [report_error] return [error_node], [report_error]
icon_html = f'<i class="{text}"></i>' icon_html = f'<i class="fa {text}"></i>'
node = nodes.raw('', icon_html, format='html') node = nodes.raw('', icon_html, format='html')
return [node], [] return [node], []

View File

@ -4,7 +4,7 @@
*/ */
/* FONT PATH /* FONT PATH
* -------------------------- */ * -------------------------- */
[class*="fa-"] { .fa {
display: inline-block; display: inline-block;
font: normal normal normal 14px/1 FontAwesome; font: normal normal normal 14px/1 FontAwesome;
font-size: inherit; font-size: inherit;