Skip to content
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

feat(styles): notification in dialog #3818

Merged
merged 4 commits into from
Sep 29, 2022

Conversation

platon-rov
Copy link
Contributor

Related Issue

Refers to SAP/fundamental-ngx#8525

Description

Notifications in dialog update.

Screenshots

After:

image

@platon-rov platon-rov added the Enhancement New feature or request label Aug 18, 2022
@platon-rov platon-rov requested a review from a team August 18, 2022 15:55
@platon-rov platon-rov self-assigned this Aug 18, 2022
@netlify
Copy link

netlify bot commented Aug 18, 2022

Deploy Preview for fundamental-styles ready!

Name Link
🔨 Latest commit ee17515
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-styles/deploys/6332c259b3e95c0008c887d0
😎 Deploy Preview https://deploy-preview-3818--fundamental-styles.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@InnaAtanasova InnaAtanasova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2022-08-18 at 1 00 56 PM

Also check the UX guidelines: https://experience.sap.com/internal/fiori-design-web/notification-center/

@platon-rov
Copy link
Contributor Author

  • There's no way to dismiss the dialog

Fixed.

There is nothing about the mobile dialog, it's just about the notifications in the dialog. If needed, the dialog may be additionally configured.

Copy link
Contributor

@InnaAtanasova InnaAtanasova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2022-08-19 at 10 13 27 AM

Screen Shot 2022-08-19 at 10 13 21 AM

You should probably use the compact button and align it with the other dismiss buttons (that belong to the notifications) as this will be immediately reported as a bug by the designers.

@InnaAtanasova
Copy link
Contributor

  • There's no way to dismiss the dialog

Fixed.

There is nothing about the mobile dialog, it's just about the notifications in the dialog. If needed, the dialog may be additionally configured.

I provided these links as it specifies that the actions are in the footer:
"On smartphones, a dialog can have one or two actions, which are located in the footer and right-aligned."
This would mean that dismissing the notification dialog should be done by a Cancel button in the footer, not in the header (in my opinion)
Screen Shot 2022-08-19 at 10 17 59 AM

@platon-rov
Copy link
Contributor Author

You should probably use the compact button and align it with the other dismiss buttons (that belong to the notifications) as this will be immediately reported as a bug by the designers.

Not a bug actually. Dialog has 1rem padding on the sides and notification has 0.5rem on the right side.

I provided these links as it specifies that the actions are in the footer:

Fixed.

Copy link
Member

@mikerodonnell89 mikerodonnell89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dialog can be too wide for the notifications, depending on screen width:

Screen Shot 2022-08-23 at 9 58 44 AM

Copy link
Member

@mikerodonnell89 mikerodonnell89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! I do agree with Inna that the margins look strange but if that's the design, it is out of our hands. Definitely looks a little better with the cancel button in the footer rather than the X bottom in the header.

@InnaAtanasova
Copy link
Contributor

Screen Shot 2022-09-07 at 3 36 31 PM

Should it look like this in mobile?

@platon-rov
Copy link
Contributor Author

Should it look like this in mobile?

Nothing about notification itself, it comes from the dialog.

@InnaAtanasova
Copy link
Contributor

Should it look like this in mobile?

Nothing about notification itself, it comes from the dialog.

it doesn't matter :) We shouldn't merge something that is broken or doesn't look ok. If it's coming from the dialog, either open a new issue that should be fixed asap and link it here, or fix it in a separate PR and link it here. But we can't merge this PR and just ignore the fact that in mobile the notifications look broken. @droshev what is your opinion?

@platon-rov
Copy link
Contributor Author

it doesn't matter :) We shouldn't merge something that is broken or doesn't look ok. If it's coming from the dialog, either open a new issue that should be fixed asap and link it here, or fix it in a separate PR and link it here. But we can't merge this PR and just ignore the fact that in mobile the notifications look broken. @droshev what is your opinion?

Opened a pr that fixes this issue

#3882

image

@platon-rov platon-rov force-pushed the pr/fix/notification-mobile-in-popover branch from 6c9ea14 to ee17515 Compare September 27, 2022 09:28
@platon-rov platon-rov requested review from InnaAtanasova and removed request for InnaAtanasova September 27, 2022 10:05
@platon-rov platon-rov merged commit 10fbc50 into main Sep 29, 2022
@platon-rov platon-rov deleted the pr/fix/notification-mobile-in-popover branch September 29, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants