-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cde26ae
commit 5ed8641
Showing
6 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import '@accoutrement'; | ||
|
||
.tag-border { | ||
align-items: center; | ||
padding: 2px; | ||
margin-left: 8px; | ||
font-size: 10px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: normal; | ||
color: var(--secondary-pearl-90, rgba(250, 250, 250, 0.9)); | ||
text-transform: uppercase; | ||
background: var(--warning-amber-100-primary, #d97008); | ||
border-radius: 2px; | ||
|
||
&.beta { | ||
background: var(--warning-amber-100-primary, #d97008); | ||
} | ||
|
||
&.new { | ||
background: var(--success-jade-100-primary, #22a06b); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { PureComponent, MouseEventHandler } from 'react' | ||
import classnames from './alert-tag.module.scss' | ||
|
||
export interface AlertTagProps extends BaseProps { | ||
tagLabel: string | ||
tagType: string | ||
} | ||
|
||
export default class AlertTag extends PureComponent<AlertTagProps> { | ||
render() { | ||
const { tagLabel, tagType } = this.props | ||
return ( | ||
<div className={classnames('tag-border', tagType)}> | ||
{this.props.tagLabel} | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters