wintercms / wintercms/wn-tailwindui-plugin
Compiled CSS is injected too late
Open
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');
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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