Calling Developers!
We are reenergizing our code contribution process! Learn More

Mixin doesn't accept a content block

hau.nguyen Spryker job Posts: 23 🧑🏻‍🚀 - Cadet

hi team,

We have followed instructions ( 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


Hau Nguyen



  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 73 🏛 - Council (mod)
    edited September 2023

    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) {