Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TwigComponent]: allow to define css file per component #2379

Open
tito10047 opened this issue Nov 15, 2024 · 1 comment
Open

[TwigComponent]: allow to define css file per component #2379

tito10047 opened this issue Nov 15, 2024 · 1 comment

Comments

@tito10047
Copy link

Hi, I use component directory structure from this article and is powefrull. I use it in all my projects.
But I miss there One feature. I cant use custom css file without javascript controller

this can be nice feature

#[AsTwigComponent('MyComponent', template: 'MyComponent/MyComponent.html.twig', css:"MyComponent/MyComponent.css")]
class MyComponent{
    
}

The css parameter add css file to asset mapper.

If this is good idea, I can try do PR.

@Kocal
Copy link
Member

Kocal commented Nov 15, 2024

That's interesting!
But... someone is working in the shadow on something really interesting and better than that! Stay tuned :)

PS: I hope you enjoyed the article!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants