Better notification dismiss button visibility

This commit is contained in:
Labhansh Agrawal 2021-10-13 23:27:51 +05:30
parent 59c18a9eb1
commit db1721b7a2
2 changed files with 5 additions and 5 deletions

View file

@ -99,14 +99,14 @@ export default class Notification extends React.PureComponent<NotificationProps,
position: relative;
left: 4px;
cursor: pointer;
opacity: 0.5;
font-weight: 600;
color: currentColor;
transition: opacity 0.1s ease-in-out;
transition: font-weight 0.1s ease-in-out;
}
.notification_dismissLink:hover,
.notification_dismissLink:focus {
opacity: 1;
font-weight: 900;
}
`}</style>
</div>

View file

@ -38,10 +38,10 @@ export default class Notifications extends React.PureComponent<NotificationsProp
<Notification
key="message"
backgroundColor="#FE354E"
color="#fff"
text={this.props.messageText}
onDismiss={this.props.onDismissMessage}
userDismissable={this.props.messageDismissable}
userDismissColor="#AA2D3C"
>
{this.props.messageURL
? [
@ -58,7 +58,7 @@ export default class Notifications extends React.PureComponent<NotificationsProp
>
more
</a>,
')'
') '
]
: null}
</Notification>