wintercms / wintercms/wn-tailwindui-plugin

Compiled CSS is injected too late

Open
#45 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
20
Forks
10
Avg merge
3h 16m
Merged PRs (30d)
1

Description

The Tailwind UI CSS is injected in the HTML after all our own assets are injected, making it more difficult to override css
I think this is since the latest version?

Event::listen('backend.page.beforeDisplay', function($controller, $action, $params) {
    $controller->addCss('/plugins/aic/extendwinterpages/assets/css/skin-reset.css', 'AIC.v25');
});

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the backend.page.beforeDisplay listener and the controller->addCss call shown in the report, then trace how the Tailwind UI CSS and the custom skin-reset.css asset are ordered. Done means the Tailwind UI stylesheet is injected before project assets so the documented override can take effect; verify the resulting HTML asset order in the backend page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, tailwindcss
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.