Component style does not work

Hi, studying the Framework7’s documentation(Core), I got an issue in the Card component - in examples after </template> there is <style> and nothing inside this block is applied on my component. But if I add the same style code to the app.css - all works fine. Is there any solve for it?
The code of card component example:

	.demo-card-header-pic .card-header {
		height: 40vw;
		background-size: cover;
		background-position: center;
		color: #fff;

	.demo-card-header-pic .card-content-padding .date {
		color: #8e8e93;

I read this topic CSS variables in component style block. But maybe I am something missing and the resolve is exactly there, am I?

Update framework7-loader to latest 3.0.2

Hi, could you help me with updating please?

I found the page on github with necessary package. But, actually, I do not really understand how to update it manually. Is it can be done by simple changing in files package.json and package-lock.json version of framework7-loader from 3.0.1 to 3.0.2?
Or I should do something different?

in package.json file, framework7-loader from 3.0.1 to 3.0.2
cmd> npm i

cmd> npm un -D framework7-loader
cmd> npm i -D framework7-loader

1 Like

Have you tried scoping your style to the component? Try this:

 <style scoped>

Now it works!

Thank you so much!

thanks my issue has been fixed.