Skip to content

[18.0][FIX] base_fontawesome: Keep style loading order#3634

Open
ypapouin wants to merge 1 commit into
OCA:18.0from
decgroupe:18.0-fix-assets-loading-order
Open

[18.0][FIX] base_fontawesome: Keep style loading order#3634
ypapouin wants to merge 1 commit into
OCA:18.0from
decgroupe:18.0-fix-assets-loading-order

Conversation

@ypapouin
Copy link
Copy Markdown
Contributor

@ypapouin ypapouin commented Jun 2, 2026

When this module is installed, the /web/static/src/webclient/icons.scss stylesheet is loaded before when it should be loaded after, as a consequence default weight for .fa is 900 instead of 400.

To ensure that the overridden fontawesome style is perfectly replaced, we have to operate in group mode and force asset position using after [1] keyword.

[1] https://www.odoo.com/documentation/18.0/developer/reference/frontend/assets.html#after

before:
image

after:
image

@OCA-git-bot OCA-git-bot added series:18.0 mod:base_fontawesome Module base_fontawesome labels Jun 2, 2026
To ensure that the overridden fontawesome style is perfectly replaced, we have to operate in group mode and force asset position using `after` [1] keyword.

[1] https://www.odoo.com/documentation/18.0/developer/reference/frontend/assets.html#after
@ypapouin ypapouin force-pushed the 18.0-fix-assets-loading-order branch from f665483 to a308e23 Compare June 2, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants