-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(navigation-bar): добавить проброс пропсов для Closer [DS-9232] #1613
Conversation
🦋 Changeset detectedLatest commit: 04c1818 The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
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 |
Pull Request Test Coverage Report for Build 14055438296Warning: 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
💛 - Coveralls |
Собрана новая демка. |
packages/navigation-bar-private/src/components/closer/Component.tsx
Outdated
Show resolved
Hide resolved
@@ -226,6 +232,7 @@ export const PopupSheet = forwardRef<HTMLDivElement, PopupSheetProps>( | |||
className={styles.closer} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className={cn(styles.closer,closerProps?.className)}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.changeset/cuddly-clocks-cry.md
Outdated
'@alfalab/core-components-popup-sheet': minor | ||
--- | ||
|
||
добавлена возможность передовать дополнительные props в компонент Closer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавлена возможность передовать дополнительные props в компонент Closer | |
Добавлена возможность передавать дополнительные props в компонент Closer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
и чуть подробнее описать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | ||
* Дополнительные пропсы для компонента Closer. | ||
*/ | ||
closerProps?: Omit<CloserProps, 'view' | 'onClick'>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omit<CloserProps, 'view' | 'onClick'>
-> Omit<CloserProps, 'view' | 'onClose'>
из самого типа CloserProps
исключить onClick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Обновил снэпшот тесты, написал тест на проброс инлайнового стиля для Closer, установил кастомное значение z-index: 2. Предлагаю обсудить, точно ли необходима правка, а если необходима, то точно ли стоит пробрасывать пропс под z-index?
Чек лист
Если есть визуальные изменения