Skip to content
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

Merged
merged 4 commits into from
Apr 2, 2022
Merged

Add API tooltip to L2 page #5880

merged 4 commits into from
Apr 2, 2022

Conversation

corwintines
Copy link
Member

Description

  • Add API tooltip to l2 page stats
  • remove fee data for L2 projects not listed

@gatsby-cloud
Copy link

gatsby-cloud bot commented Apr 1, 2022

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 16m

Performance

Lighthouse report

Metric Score
Performance 🔶 19
Accessibility 💚 100
Best Practices 💚 100
SEO 🔶 85

🔗 View full report

Copy link
Contributor

@minimalsm minimalsm left a 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 🎉😀

Comment on lines 243 to 244
minimumSignificantDigits: 2,
maximumSignificantDigits: 3,
maximumSignificantDigits: 2,
Copy link
Contributor

@minimalsm minimalsm Apr 1, 2022

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!

Screenshot 2022-04-01 at 21 20 32

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.

Screenshot 2022-04-01 at 21 49 19
Screenshot 2022-04-01 at 21 49 39

@wackerow wackerow merged commit 259bd72 into dev Apr 2, 2022
@wackerow wackerow deleted the l2-page-api-icons branch April 2, 2022 16:51
@corwintines corwintines mentioned this pull request Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants