Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

feat(alert): v1 #1063

Merged
merged 8 commits into from
Mar 19, 2019
Merged

feat(alert): v1 #1063

merged 8 commits into from
Mar 19, 2019

Conversation

bmdalex
Copy link
Collaborator

@bmdalex bmdalex commented Mar 15, 2019

Alert component V1

Description

This PR resolves #1061 by implementing the Alert component.

API

info

An alert may be formatted to display information.

Screenshot 2019-03-15 at 21 25 19

warning

An alert may be formatted to display a warning message.

Screenshot 2019-03-15 at 21 25 30

success

An alert may be formatted to display a successful message.

Screenshot 2019-03-15 at 21 25 38

danger

An alert may be formatted to display a danger message.

Screenshot 2019-03-15 at 21 25 45

attached

An Alert can be can be formatted to attach itself to other content.

Screenshot 2019-03-15 at 21 25 53

action

An Alert can provide the user with an action.

Screenshot 2019-03-15 at 21 26 01

@codecov
Copy link

codecov bot commented Mar 15, 2019

Codecov Report

Merging #1063 into master will decrease coverage by 0.1%.
The diff coverage is 64%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1063      +/-   ##
=========================================
- Coverage   81.91%   81.8%   -0.11%     
=========================================
  Files         693     696       +3     
  Lines        8450    8499      +49     
  Branches     1233    1168      -65     
=========================================
+ Hits         6922    6953      +31     
- Misses       1513    1531      +18     
  Partials       15      15
Impacted Files Coverage Δ
packages/react/src/components/Button/Button.tsx 95.55% <ø> (ø) ⬆️
packages/react/src/index.ts 100% <100%> (ø) ⬆️
...kages/react/src/themes/teams/componentVariables.ts 100% <100%> (ø) ⬆️
packages/react/src/themes/teams/componentStyles.ts 100% <100%> (ø) ⬆️
packages/react/src/components/Alert/Alert.tsx 100% <100%> (ø)
packages/react/src/themes/teams/siteVariables.ts 100% <100%> (ø) ⬆️
...t/src/themes/teams/components/Alert/alertStyles.ts 11.76% <11.76%> (ø)
...rc/themes/teams/components/Alert/alertVariables.ts 40% <40%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5459c76...7de8cbb. Read the comment docs.

@bmdalex bmdalex force-pushed the feat/alert-component branch from b5649ce to 8d73689 Compare March 18, 2019 09:45
@layershifter
Copy link
Member

NIT: I'm not sure that that info should be grey, I think that it should be blue actually... 🤔

@mnajdova
Copy link
Contributor

@layershifter that was my first thought as well, but as the changes are implemented in the teams theme, then whatever are the requirements for that theme should be there. If the changes were in base theme, then we could have argue about what the colors should be. I wouldn't change this currently.

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

Left few final comments. And please don't forget to update the changelog before merging.

@bmdalex bmdalex force-pushed the feat/alert-component branch 3 times, most recently from 72a30c2 to f9c0904 Compare March 19, 2019 13:01
@bmdalex bmdalex force-pushed the feat/alert-component branch from 1971b97 to 7de8cbb Compare March 19, 2019 14:32
@bmdalex bmdalex merged commit 6456821 into master Mar 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/alert-component branch March 19, 2019 15:03
@bmdalex bmdalex mentioned this pull request Mar 19, 2019
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Alert | Banner | Message component
4 participants