-
Notifications
You must be signed in to change notification settings - Fork 357
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(message): introducing message
module. (closes #316)
#596
Conversation
adding CovalentMessageComponent with `TdMessageComponent` for easy display of inline messages or info boxes
message
modulemessage
module. (closes #316)
when [opened] was initialized as false, the initialized flag was never set to true added unit test to verify it works
src/platform/core/message/README.md
Outdated
`td-message` element generates an inline message with an icon, color, label and sublabel. | ||
|
||
`color` can be either with any theme color (`primary`, `accent` or `warn`) | ||
But you can also set a `color` from our lib can be applied in the component to get any material color not in the theme. (`blue`, `red`, etc) |
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 you mean:
But you can also set a color
from our lib and it can be applied in the component to get any material color not in the theme. (blue
, red
, etc)
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.
updated~
adding
CovalentMessageComponent
withTdMessageComponent
for easy display of inline messages or info boxes#316
Description
Adding
message
component tocovalent
.This leverages our color styles to set the color and contrast (
red
,blue
, etc), but also can use the material theme colors likeprimary
,warn
andaccent
.Usage example:
API Summary
Properties:
label?
string
sublabel?
string
icon?
string
info_outline
iconcolor?
'primary', 'accent' or 'warn'
purple
,light-blue
, etc.opened?
boolean
open
function()
close
function()
toggle
function()
What's included?
CovalentMessageModule
andTdMessageComponent
message
componentTest Steps
ng serve
General Tests for Every PR
ng serve --aot
still works.npm run lint
passes.npm test
passes and code coverage is not lower.npm run build
still works.Screenshots or link to CodePen/Plunker/JSfiddle