mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Better notification dismiss button visibility
This commit is contained in:
parent
59c18a9eb1
commit
db1721b7a2
2 changed files with 5 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue