-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1312 from Bynder/GC-3155-notification-icon-and-blip
GC-3155 Notification Blip
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import cx from 'classnames'; | ||
|
||
interface Props { | ||
className?: string; | ||
} | ||
|
||
export default function NotificationBlip({ className }: Props) { | ||
const classes = cx('notification-blip', className); | ||
return <div className={classes}></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.notification-blip { | ||
@apply absolute h-full w-full; | ||
} | ||
|
||
.notification-blip::after { | ||
@apply rounded-full absolute block h-1.5 w-1.5 bg-red-40 right-[13%] top-[13%]; | ||
|
||
content: ''; | ||
} |
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,21 @@ | ||
import React from "react"; | ||
import { Button, ButtonIcon } from "../../lib"; | ||
import { Icon } from "../../lib"; | ||
import NotificationBlipComponent from "../../lib/Notification/blip/NotificationBlip"; | ||
import StoryItem from "../styleguide/StoryItem"; | ||
|
||
export default { | ||
title: 'GUI/Notification Blip', | ||
component: NotificationBlipComponent, | ||
}; | ||
|
||
export const NotificationBlip = (args: any) => <> | ||
<StoryItem | ||
title="Notification blip" | ||
description="A visual indicator to inform the user they have notifications" | ||
> | ||
<ButtonIcon name={'bell'}> | ||
<NotificationBlipComponent /> | ||
</ButtonIcon> | ||
</StoryItem> | ||
</>; |
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