diff --git a/.changelog/2006.trivial.md b/.changelog/2006.trivial.md new file mode 100644 index 0000000000..e18c4bf3f3 --- /dev/null +++ b/.changelog/2006.trivial.md @@ -0,0 +1 @@ +Use Roboto Mono for amounts diff --git a/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap index ab6af1ec0f..b37be42e2a 100644 --- a/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/AddEscrowForm/__tests__/__snapshots__/index.test.tsx.snap @@ -345,7 +345,7 @@ exports[` should match snapshot 1`] = `
456.542341274
diff --git a/src/app/components/AmountFormatter/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/AmountFormatter/__tests__/__snapshots__/index.test.tsx.snap index 966f2ec206..7b4decb67f 100644 --- a/src/app/components/AmountFormatter/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/AmountFormatter/__tests__/__snapshots__/index.test.tsx.snap @@ -25,7 +25,7 @@ exports[` should render component 1`] = `
456.542341274
@@ -69,7 +69,7 @@ exports[` should render component with small ticker 1`] = `
456.542341274
diff --git a/src/app/components/AmountFormatter/index.tsx b/src/app/components/AmountFormatter/index.tsx index 939043ef8c..e0f24dcb82 100644 --- a/src/app/components/AmountFormatter/index.tsx +++ b/src/app/components/AmountFormatter/index.tsx @@ -59,7 +59,16 @@ export const AmountFormatter = memo( return ( - {amountString} + + {amountString} + {!hideTicker && ( {` ${ticker}`} diff --git a/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap index 24e939c10a..c80085b88e 100644 --- a/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/ReclaimEscrowForm/__tests__/__snapshots__/index.test.tsx.snap @@ -465,7 +465,7 @@ exports[` should match snapshot 1`] = `
0.000001
diff --git a/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap b/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap index 3c92b1e275..03350fea6a 100644 --- a/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap +++ b/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap @@ -515,7 +515,7 @@ exports[` should match snapshot 1`] = `
0.000001
diff --git a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap index c73d5a1d24..b9f1b10e97 100644 --- a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap @@ -734,7 +734,7 @@ exports[` should match snapshot 1`] = `
0.0000001
diff --git a/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap index e3059f0e92..730c7ceb8a 100644 --- a/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/components/Transaction/__tests__/__snapshots__/index.test.tsx.snap @@ -677,7 +677,7 @@ exports[` should handle unknown transaction types gracefully 1`]
0.001
@@ -1411,7 +1411,7 @@ exports[` should match snapshot 1`] = `
0.001
diff --git a/src/app/pages/AccountPage/__tests__/__snapshots__/index.test.tsx.snap b/src/app/pages/AccountPage/__tests__/__snapshots__/index.test.tsx.snap index 0aeb0203cd..dbb4e83df1 100644 --- a/src/app/pages/AccountPage/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/pages/AccountPage/__tests__/__snapshots__/index.test.tsx.snap @@ -968,7 +968,7 @@ exports[` should match snapshot 1`] = `
100.000001111
@@ -991,7 +991,7 @@ exports[` should match snapshot 1`] = `
100.0
@@ -1015,7 +1015,7 @@ exports[` should match snapshot 1`] = `
0.000001111
@@ -1038,7 +1038,7 @@ exports[` should match snapshot 1`] = `
0.0
diff --git a/src/app/pages/ParaTimesPage/TransactionAmount/__tests__/__snapshots__/index.test.tsx.snap b/src/app/pages/ParaTimesPage/TransactionAmount/__tests__/__snapshots__/index.test.tsx.snap index bc22dceab2..6643bd21c5 100644 --- a/src/app/pages/ParaTimesPage/TransactionAmount/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/pages/ParaTimesPage/TransactionAmount/__tests__/__snapshots__/index.test.tsx.snap @@ -683,7 +683,7 @@ exports[` should render component 1`] = `
1.0
diff --git a/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/ActiveDelegationList.test.tsx.snap b/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/ActiveDelegationList.test.tsx.snap index f2fba64d4e..3adfc220ac 100644 --- a/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/ActiveDelegationList.test.tsx.snap +++ b/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/ActiveDelegationList.test.tsx.snap @@ -594,7 +594,7 @@ exports[` should match snapshot 1`] = `
0.0000001
diff --git a/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/DebondingDelegationList.test.tsx.snap b/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/DebondingDelegationList.test.tsx.snap index 005771b310..f08e3b410a 100644 --- a/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/DebondingDelegationList.test.tsx.snap +++ b/src/app/pages/StakingPage/Features/DelegationList/__tests__/__snapshots__/DebondingDelegationList.test.tsx.snap @@ -582,7 +582,7 @@ exports[` should match snapshot 1`] = `
0.0000001
diff --git a/src/app/pages/StakingPage/Features/ValidatorList/__tests__/__snapshots__/index.test.tsx.snap b/src/app/pages/StakingPage/Features/ValidatorList/__tests__/__snapshots__/index.test.tsx.snap index 8b4abad6c4..d0791c404c 100644 --- a/src/app/pages/StakingPage/Features/ValidatorList/__tests__/__snapshots__/index.test.tsx.snap +++ b/src/app/pages/StakingPage/Features/ValidatorList/__tests__/__snapshots__/index.test.tsx.snap @@ -765,7 +765,7 @@ exports[` list should match snapshot 1`] = `
0
@@ -837,7 +837,7 @@ exports[` list should match snapshot 1`] = `
0
@@ -909,7 +909,7 @@ exports[` list should match snapshot 1`] = `
0
diff --git a/src/styles/main.css b/src/styles/main.css index fa2a52c40b..0daed558f6 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -20,6 +20,18 @@ url("./../fonts/roboto-mono/roboto-mono-v13-latin-300.woff") format("woff"); } +/** Use Rubik for "." and "," instead of Roboto Mono. */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 300; + font-display: swap; + src: + url("./../fonts/rubik/rubik-v20-latin-ext_latin-300.woff2") format("woff2"), + url("./../fonts/rubik/rubik-v20-latin-ext_latin-300.woff") format("woff"); + unicode-range: U+002E, U+002C; +} + a { color: inherit; /* blue colors for links too */ text-decoration: inherit; /* no underline */