bem / bem/bem-react

withBemMod не применяет preset из withNaming

Open
#524 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
450
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Если задать кастомные `preset` через `withNaming` из `@bem-react/classname`
![image](https://user-images.githubusercontent.com/24933570/75229260-3bfa1480-57ba-11ea-9173-97f66b563bcf.png)
Создав класс для блока через
![image](https://user-images.githubusercontent.com/24933570/75229332-6055f100-57ba-11ea-9674-e6cd90518415.png)
Передав этот класс для блока в `withBemMod`
![image](https://user-images.githubusercontent.com/24933570/75229478-a317c900-57ba-11ea-88ec-4a11c308d7c3.png)
Получим, что модификатор создался с раздлителем `_`, а не `=` как мы указали в `withNaming`
![image](https://user-images.githubusercontent.com/24933570/75229598-e83bfb00-57ba-11ea-8da1-da7c9b1ae478.png)
Корректный результат должен быть
![image](https://user-images.githubusercontent.com/24933570/75229761-3c46df80-57bb-11ea-9d71-2b7450382712.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.