-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API tooltip to L2 page #5880
Conversation
Gatsby Cloud Build Reportethereum-org-website-dev 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 16m PerformanceLighthouse report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tooltip looks good and works on all screensizes for me. Tested on my mobile too 🎉😀
src/pages/layer-2.js
Outdated
minimumSignificantDigits: 2, | ||
maximumSignificantDigits: 3, | ||
maximumSignificantDigits: 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the 'Average layer 2 ETH transfer fee' is showing up as 1 decimal point. I was verrrry confused by this because in school, we were taught decimal places ==== significant digits. Apparently not!
Not 100% sure if this is what you're after but it looks like there is a minimumFractionDigits
and maximumFractionDigits
that we could use here instead to get it to display like regular currency ($1.10, in this case).
Tested a little and it seems to be working as we would expect.
Description