Skip to content

feat(checkbox): добавлены пропсы labelClassName, hintClassName, errorClassName, addonsClassName [DS-15789]#2119

Merged
hextion merged 3 commits intocore-ds:masterfrom
SiebenSieben:feat/checkbox-classnames
Mar 20, 2026
Merged

feat(checkbox): добавлены пропсы labelClassName, hintClassName, errorClassName, addonsClassName [DS-15789]#2119
hextion merged 3 commits intocore-ds:masterfrom
SiebenSieben:feat/checkbox-classnames

Conversation

@SiebenSieben
Copy link
Copy Markdown
Contributor

Описание

Добавлены пропсы для прокидывания className во внутренние элементы компонента Checkbox:

  • labelClassName — класс для элемента с текстом подписи (label)
  • hintClassName — класс для элемента подсказки (hint)
  • errorClassName — класс для элемента сообщения об ошибке (error)
  • addonsClassName — класс для элемента дополнительного слота (addons)

Аналогично уже существующим boxClassName и contentClassName.

Изменения

  • packages/checkbox/src/Component.tsx — добавлены 4 новых пропса в тип CheckboxProps и применены к соответствующим элементам
  • packages/checkbox/src/Component.test.tsx — добавлены тесты для каждого нового пропса

Тесты

✓ should set labelClassName
✓ should set hintClassName
✓ should set errorClassName
✓ should set addonsClassName

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 13, 2026

🦋 Changeset detected

Latest commit: e92bc24

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@alfalab/core-components Minor
@alfalab/core-components-checkbox Minor
@alfalab/core-components-select Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-table Patch
@alfalab/core-components-tabs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@SiebenSieben SiebenSieben force-pushed the feat/checkbox-classnames branch from 12d8e34 to d4bf77d Compare March 13, 2026 07:18
@SiebenSieben SiebenSieben force-pushed the feat/checkbox-classnames branch from d4bf77d to e83b738 Compare March 13, 2026 07:19
@@ -0,0 +1,7 @@
---
'@alfalab/core-components-checkbox': minor
---

This comment was marked as resolved.

@SiebenSieben SiebenSieben changed the title feat(checkbox): добавлены пропсы labelClassName, hintClassName, errorClassName, addonsClassName feat(checkbox): добавлены пропсы labelClassName, hintClassName, errorClassName, addonsClassName [DS-15789] Mar 13, 2026
Comment thread .changeset/checkbox-classnames.md
@hextion hextion merged commit 27e99d7 into core-ds:master Mar 20, 2026
20 of 21 checks passed
@core-ds-bot core-ds-bot mentioned this pull request Mar 20, 2026
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23341916420

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.921%

Totals Coverage Status
Change from base Build 23049691493: 0.0%
Covered Lines: 9583
Relevant Lines: 11602

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants