@@ -24,16 +24,27 @@ const Title = styled(H3)`
2424 margin-bottom: ${ ( { theme } ) => theme . sizes . sm } ;
2525` ;
2626
27- const Address = styled . p `
27+ const AddressButton = styled . button `
28+ display: block;
2829 width: 100%;
2930 text-align: center;
3031 font-size: ${ ( { theme } ) => theme . sizes . sm } ;
31- font-weight: ${ ( { theme } ) => theme . weights . regular } ;
32+ font-weight: ${ ( { theme } ) => theme . weights . highlight } ;
33+ font-family: inherit;
3234 line-height: 140%;
33- margin-top: ${ ( { theme } ) => theme . sizes . xs } ;
34- margin-bottom: ${ ( { theme } ) => theme . sizes . x2l } ;
35- color: ${ ( { theme } ) => theme . colors . textMuted } ;
35+ margin: ${ ( { theme } ) => `${ theme . sizes . xs } 0 ${ theme . sizes . x2l } ` } ;
36+ padding: 0;
37+ background: none;
38+ border: none;
39+ cursor: pointer;
40+ color: ${ ( { theme } ) => theme . colors . primary } ;
3641 overflow-wrap: anywhere;
42+ text-decoration: underline;
43+ text-underline-offset: 0.2em;
44+
45+ &:hover {
46+ opacity: 0.85;
47+ }
3748` ;
3849
3950const Button = styled ( BaseButton ) `
@@ -83,7 +94,7 @@ const Menu = () => {
8394 const { openMenu, account, passphrase, pin, network, chainId, legacy } =
8495 useContext ( StoreContext ) ;
8596
86- const backupAddress = ( ) => {
97+ const copyAddress = ( ) => {
8798 copy ( account . address ) ;
8899 toast ( "Address copied into clipboard." ) ;
89100 } ;
@@ -134,9 +145,13 @@ const Menu = () => {
134145 < QRCodeWrapper >
135146 < QRCodeSVG value = { network + ":" + account . address } />
136147 </ QRCodeWrapper >
137- < Address > { account . address } </ Address >
138-
139- < Button onClick = { backupAddress } > Address</ Button >
148+ < AddressButton
149+ type = "button"
150+ onClick = { copyAddress }
151+ aria-label = "Copy address"
152+ >
153+ { account . address }
154+ </ AddressButton >
140155
141156 < Button onClick = { onClickCredentials } $variant = "danger" >
142157 Credentials
0 commit comments