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: introduce new component Message Box #808
Conversation
Deploy preview for fundamental-styles ready! Built with commit 550ffeb |
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.
For information message box, the correct icon HTML code is  |
The issue is that she used the icon given in the specs... So maybe we have to contact designers to update that spec? |
bee5598
to
e0ddc62
Compare
7bea1d0
to
ad41bd6
Compare
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.
Nice work, I like the $message-box-states
as map approach.
docs/pages/components/message-box.md
Outdated
summary: | ||
--- | ||
|
||
Message Box is used to display simple messages to the user. These messages could be Standard (Default), Confirmation, Error, Success, Warning and Information (Neutral). The Message Box component inherits the look and the behaviour of the [Dialog]({{site.baseurl}}/components/dialog.html) component. |
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.
The Message Box component inherits the look and the behaviour of the Dialog
I'm not sure about that part. From my understanding Message Box is a simplified version of the Dialog + semantic states that makes a perfect fit for displaying alerts/confirmation widows etc. I don't think it will provide such features as dragging/resizing/responsiveness. Current description shows Message Box as an extension of the Dialog.
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.
perhaps "...a subset of it's behavior..."
&__content { | ||
@extend %dialog-content; | ||
|
||
overflow: hidden; |
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 going to prevent popovers from overflowing Message Box window. Dialog (with changes brought in this PR) doesn't prevent __content
overflow.
src/message-box.scss
Outdated
} | ||
|
||
&__title { | ||
@include fd-reset(); |
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.
I think we should reuse Dialogs styles for title
.
Related Issue
Closes #807
Description
Introduce new component to the library called Message Box.
Message Box inherits the look and the behaviour of Dialog and for this reason certain blocks of code that are reused in both components are moved into
_dialog-placeholders
file.