Answer the question
In order to leave comments, you need to log in
How to correctly override components from bem-components?
Hello!
Dealing with bem-components (ready assembly project-stub), I "stumbled" on the redefinition of ready-made components bem-components 6.0.0. And more specifically, on the link component/block.
I add to index.bemjson.js:
...
elem: 'logo',
mix: { block: 'grid', elem: 'cell' },
content:
{
block: 'link',
url: 'http://test.ru',
content: 'link text'
}
...
<a class="link link__control i-bem" data-bem='{"link":{}}' role="link" href="http://test.ru">link test</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question