diff --git a/components/price.js b/components/price.js
index 6961dee6..01dd9f7a 100644
--- a/components/price.js
+++ b/components/price.js
@@ -44,6 +44,15 @@ export function PriceProvider ({ price, children }) {
)
}
+function AccessibleButton ({ id, description, children, ...props }) {
+ return (
+
+
+
{description}
+
+ )
+}
+
export default function Price ({ className }) {
const [selection, handleClick] = usePriceCarousel()
@@ -56,53 +65,53 @@ export default function Price ({ className }) {
if (selection === 'yep') {
if (!price || price < 0) return null
return (
-
+
{fixedDecimal(100000000 / price, 0) + ` sats/${fiatSymbol}`}
-
+
)
}
if (selection === '1btc') {
return (
-
+
)
}
if (selection === 'blockHeight') {
if (blockHeight <= 0) return null
return (
-
+
)
}
if (selection === 'halving') {
if (!halving) return null
return (
-
+
)
}
if (selection === 'chainFee') {
if (chainFee <= 0) return null
return (
-
+
)
}
if (selection === 'fiat') {
if (!price || price < 0) return null
return (
-
+
{fiatSymbol + fixedDecimal(price, 0)}
-
+
)
}
}
diff --git a/styles/globals.scss b/styles/globals.scss
index 86f33c5c..b7923c82 100644
--- a/styles/globals.scss
+++ b/styles/globals.scss
@@ -985,6 +985,17 @@ div[contenteditable]:focus,
}
}
+.visually-hidden {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ border: 0;
+}
+
.react-datepicker-wrapper {
display: inline-block;
padding: 0;