-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): allow copying notification message (#1086)
* Don't close when clicked (instead the only way to close is clicking on the X button) * Increase the close button size * Change the cursor to indicate it can be copied
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
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,15 @@ | ||
.notificationsComponent { | ||
// Overwrites react-notification-component | ||
// TODO: Ideally we would create a custom component | ||
// (https://github.com/teodosii/react-notifications-component/blob/a4a452d4994930861c21768c5d54352aafc80a2c/README.md?plain=1#L340-L344) | ||
// but this should do for now | ||
[class~='notification__close']::after { | ||
font-size: 48px; | ||
cursor: pointer; | ||
} | ||
|
||
[class~='notification__item'] { | ||
// Since the only way to close the notification is via the close button | ||
cursor: auto !important; | ||
} | ||
} |
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