bem / bem/yandex-ui

Объясните выбор названий классов для некоторых компонентов

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
356
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Почему используются названия .Button2, .Select2, .Popup2, вместо привычных .Button, .Select, .Popup ?
Это из-за возможности добавить [дополнительный класс](https://github.com/bem/yandex-ui/blob/master/src/components/Button/Button.tsx#L125) через prop `className` ?

Contributor guide

Open the contributing guide

Research direction

Start by reading src/components/Button/Button.tsx around line 125, then compare the Button2, Select2, and Popup2 component names mentioned in the issue. Done means the project’s rationale for these names, including whether className affects the choice, is clearly explained in the issue or relevant documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.