
Mixin doesn't accept a content block

hi team,
We have followed instructions (https://docs.spryker.com/docs/scos/dev/front-end-development/202307.0/yves/yves-multi-themes.html#extending-scss) on how to extend SCSS, but there seems to be a bug related to the SCSS mixin
SassError: Mixin doesn't accept a content block.
In case I remove the 2 {} marks in the body of basic-typography it works well for me
Thanks
Hau Nguyen
Answers
-
The widget you´re using, doesn´t take a content selector, @content, that´s why you cannot use it the way you did before. The on you used you can just include it like you did in the first example.
This following mixin can accept a content
@mixin product-group-widget-product-item-color-selector($name: '.product-item-color-selector') {@include product-group-widget-color-selector($name) {
@content;
}
}
0
Categories
- All Categories
- 38 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 32 Spryker News
- 536 Developer Corner
- 407 Spryker Development
- 54 Spryker Dev Environment
- 273 Spryker Releases
- 30 Propel ORM
- 46 Community Projects
- 6 Gacela Project
- 3 PHP Bridge
- 21 Hackathon
- 3.2K 📜 Slack Archives
- 115 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random
- 4 Code Testing
- 23 Product & Business Questions
- 40 Spryker Safari Questions
- 35 The Blackhole