-
Notifications
You must be signed in to change notification settings - Fork 133
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: (Core) refactor Notifications to follow the latest design specs #5186
Conversation
Deploy preview for fundamental-ngx ready! Built with commit f30d5ff |
80712fa
to
2584b5a
Compare
.fd-notification--group .fd-notification__body:last-child { | ||
border-bottom: var(--sapList_BorderWidth) solid var(--sapList_BorderColor); |
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.
This is fixed in PR in styles: SAP/fundamental-styles#2272
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.
Great job! I've commented couple of small issues I've noticed.
libs/core/src/lib/notification/notification-group-header/notification-group-header.component.ts
Outdated
Show resolved
Hide resolved
libs/core/src/lib/notification/notification-group-list/notification-group-list.component.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
/** @hidden */ | ||
elementRef(): ElementRef<any> { |
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.
Do we need an explicit type argument "any" here?
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.
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.
ok...will remove it but it will be inconsistent with the rest of the app. Prob need to create an issue to refactor it for all components.
libs/core/src/lib/notification/notification-service/notification.service.ts
Show resolved
Hide resolved
this._subscriptions.add( | ||
this._router.events.pipe( | ||
filter(event => event instanceof NavigationStart && this.closeOnNavigation) | ||
).subscribe(event => this.notificationRef.dismiss()) |
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.
Event here is not used, do we need it in arguments?
@N1XUS thanks for your review, your comments have been addressed. |
|
||
/** @hidden */ | ||
private _listenRtl(): void { | ||
if (this._rtlService) { |
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.
This component should also depend on the content density service and set button sizes accordingly
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.
After investigating, input actually seems to be the best way to deal with message strip margin
5403733
to
abe32bd
Compare
abe32bd
to
6679d38
Compare
0c59f20
to
0aa9056
Compare
06b7372
to
0c59f20
Compare
…5186) BREAKING CHANGE: Changes in markup Removed fd-notification-avatar directive The directive fd-notification-actions is now a component Removed fd-notification-text directive Removed fd-notification-description directive Removed fd-notification-metadata directive Removed the Notifications From Object option together with the NotificationDefault. Notifications Group is no longer a banner displayed in the right corner but displayed inside a popover triggered by clicking the bell icon in the shell bar at the top right of the screen.
…5186) BREAKING CHANGE: Changes in markup Removed fd-notification-avatar directive The directive fd-notification-actions is now a component Removed fd-notification-text directive Removed fd-notification-description directive Removed fd-notification-metadata directive Removed the Notifications From Object option together with the NotificationDefault. Notifications Group is no longer a banner displayed in the right corner but displayed inside a popover triggered by clicking the bell icon in the shell bar at the top right of the screen.
Please provide a link to the associated issue.
Please provide a brief summary of this pull request.
refactored Notifications component to reflect the latest css from Fundamental-styles
BREAKING CHANGES:
fd-notification-avatar
directivefd-notification-actions
is now a componentfd-notification-text
directivefd-notification-description
directived-notification-metadata
directivePlease check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-ngx/blob/main/CONTRIBUTING.md
https://github.com/SAP/fundamental-ngx/wiki/PR-Review-Checklist
Documentation checklist:
README.md