Weight and Group is not respected, inline css always injected last

Created on 24 May 2023, almost 2 years ago
Updated 24 April 2024, about 1 year ago

Problem/Motivation

The inline CSS snippets are always loaded last, this can be an issue in some usecases where the order of the css styles matters. I agree that in 99% of usecases you will want the inline styles loaded last (or it does not matter), however in the project i'm working on it had to be injected higher up in the chain (the theme had to override after the inline css).

Steps to reproduce

Inject an inline css with the group set to -999 and weight set to -999 and one would expect the inline css to be loaded before everything else, unfortunately it's not.

Proposed resolution

Adding a patch below to have a quick fix that works for my project.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium m4TT3rs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024