Skip to content

Commit 084906f

Browse files
committed
Fix colors per Thomas' request
1 parent 49dbf28 commit 084906f

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

ui/components/ui/actionable-message/actionable-message.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ const CLASSNAME_WARNING = 'actionable-message--warning';
88
const CLASSNAME_DANGER = 'actionable-message--danger';
99
const CLASSNAME_INFO = 'actionable-message--info';
1010
const CLASSNAME_WITH_RIGHT_BUTTON = 'actionable-message--with-right-button';
11+
const CLASSNAME_SUCCESS = 'actionable-message--success';
1112

1213
const typeHash = {
1314
warning: CLASSNAME_WARNING,
1415
danger: CLASSNAME_DANGER,
1516
info: CLASSNAME_INFO,
1617
default: '',
18+
success: CLASSNAME_SUCCESS,
1719
};
1820

1921
export default function ActionableMessage({

ui/components/ui/actionable-message/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@
9393
}
9494
}
9595

96+
&--success {
97+
border-color: #c3f4cb;
98+
background-color: #eaf8ed;
99+
100+
.actionable-message__message {
101+
color: var(--Black-100);
102+
}
103+
}
104+
96105
&--danger {
97106
background: var(--Red-000);
98107
border: 1px solid var(--Red-300);

ui/pages/confirm-transaction-base/hardware-connectivity/hardware-connectivity-message.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33

44
import { useI18nContext } from '../../../hooks/useI18nContext';
55
import ActionableMessage from '../../../components/ui/actionable-message/actionable-message';
6-
import { DEVICE_NAMES, KEYRING_NAMES } from '../../../../shared/constants/hardware-wallets';
6+
import { KEYRING_NAMES } from '../../../../shared/constants/hardware-wallets';
77

88
export default function HardwareConnectivityMessage({
99
connected = false,
@@ -14,14 +14,14 @@ export default function HardwareConnectivityMessage({
1414
return (
1515
<div className="hardware-connectivity-message">
1616
<ActionableMessage
17-
type={connected ? '' : 'warning'}
17+
type={connected ? 'success' : 'warning'}
1818
message={
1919
connected ? (
2020
t('hardwareWalletConnectivityConnected', [KEYRING_NAMES.LEDGER])
2121
) : (
2222
<>
2323
{t('hardwareWalletConnectivityNotConnected', [
24-
DEVICE_NAMES.LEDGER,
24+
KEYRING_NAMES.LEDGER,
2525
])}{' '}
2626
<button
2727
className="hardware-connectivity-message__button"

ui/pages/confirm-transaction-base/hardware-connectivity/index.scss

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@
1919
}
2020
}
2121

22-
.hardware-connectivity-message__button {
23-
font-size: inherit;
24-
background: unset;
25-
padding: 0;
22+
.hardware-connectivity {
23+
&-message {
24+
margin-bottom: 24px;
25+
26+
.actionable-message {
27+
padding: 8px;
28+
29+
&__message {
30+
text-align: start;
31+
}
32+
}
33+
34+
&__button {
35+
font-size: inherit;
36+
background: unset;
37+
padding: 0;
38+
}
39+
}
2640
}

0 commit comments

Comments
 (0)