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
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random