-
Notifications
You must be signed in to change notification settings - Fork 20
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
plasma-new-hope: Notification redesign #927
Conversation
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-927/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-927/ |
c0553a3
to
77a111a
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-927/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-927/ |
⚡ Component performance testingResult: 🟢 OK |
packages/plasma-new-hope/src/components/Notification/utils/index.ts
Outdated
Show resolved
Hide resolved
|
||
export const NotificationsProvider: React.FC<{ children: ReactNode; frame?: string }> = ({ | ||
children, | ||
frame = 'theme-root', | ||
frame = 'document', |
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.
это я забыл убрать, пока тестил. Спасибо, что заметил
*/ | ||
actions?: ReactNode; | ||
/** | ||
* Тип направления расположения всех частей Notification. |
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.
Комментарий и название prop как мне кажется немного про разное.
Может - "схема расположение блоков Notification" ?
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.
Да, так получше звучит, как ты предложил
&.${classes.horizontal} { | ||
display: flex; | ||
align-items: center; | ||
flex: 1; |
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.
[Уточнение]
Это сокращение - и тут значение 1 для: flex-shrink
, flex-base
, flex-grow
.
Это так и задумывалось?
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.
вообще flex-grow
77a111a
to
133d3c5
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-927/ |
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-927/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-927/ |
⚡ Component performance testingResult: 🟢 OK |
5048e82
to
f566aea
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-927/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-927/ |
⚡ Component performance testingResult: 🟢 OK |
🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀 |
1 similar comment
🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀 |
🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀 |
Notification
Было:
Стало:
What/why changed
Добавлены иконки, кнопки для взаимодействия, а также 2 вида layout - горизонтальный и вертикальный
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: