Skip to content

Commit aa53c1b

Browse files
Merge pull request #349 from seatable/change-notification-popover-icon-style
change notification popover icon style
2 parents 31b57cb + 5497d5e commit aa53c1b

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "dtable-ui-component",
3-
"version": "6.0.45",
3+
"version": "6.0.46",
44
"main": "./lib/index.js",
55
"dependencies": {
66
"@seafile/react-image-lightbox": "4.0.2",
77
"@seafile/seafile-calendar": "0.0.31",
8-
"@seafile/seafile-editor": "~2.0.6",
8+
"@seafile/seafile-editor": "~2.0.12",
99
"classnames": "2.3.2",
1010
"dayjs": "1.10.7",
1111
"dtable-utils": "~5.0.22",
@@ -50,7 +50,7 @@
5050
"lib",
5151
"es",
5252
"index.js",
53-
"packagge.json"
53+
"package.json"
5454
],
5555
"browserslist": {
5656
"production": [

src/NotificationPopover/index.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,10 @@
2323
position: relative;
2424
}
2525

26-
.notification-container .notification-header .notification-close-icon {
26+
.notification-container .notification-header .seatable-icon-btn {
2727
position: absolute;
2828
right: 14px;
29-
height: 24px;
30-
width: 24px;
31-
text-align: center;
32-
cursor: pointer;
33-
color: #000;
34-
opacity: 0.5;
35-
font-weight: 700;
36-
}
37-
38-
.notification-container .notification-header .notification-close-icon:hover {
39-
opacity: 0.75;
29+
font-weight: normal;
4030
}
4131

4232
.notification-container .notification-body {

src/NotificationPopover/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Popover } from 'reactstrap';
4+
import IconButton from '../IconButton';
5+
46
import './index.css';
57

68
export default class NotificationPopover extends React.Component {
@@ -72,7 +74,7 @@ export default class NotificationPopover extends React.Component {
7274
<div className="notification-container" ref={ref => this.notificationContainerRef = ref}>
7375
<div className="notification-header">
7476
{headerText}
75-
<span className="dtable-font dtable-icon-x notification-close-icon" onClick={this.props.onNotificationListToggle}></span>
77+
<IconButton icon="x" onClick={this.props.onNotificationListToggle} />
7678
</div>
7779
<div className="notification-body">
7880
{this.props.enableWeixin &&

0 commit comments

Comments
 (0)