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

#315 Improve Lighthouse scores #322

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

nevendyulgerov
Copy link
Contributor

@nevendyulgerov nevendyulgerov commented Jan 29, 2025

I made tweaks in order to improve the Lighthouse scores. Those changes are mostly focused around the accessibility score. I made several other tweaks in order to mitigate a couple of hydration errors and an edge case for the empty state of specifications. Summary:

  • Added aria-label for the Address copy button.
  • Added aria-label for the applications/inputs table action buttons. Increased the size of the buttons to mitigate an accessibility issue related with minimal touch target size of those buttons.
  • Made all footer links to have underlines in regards to this accessibility issue.
  • Added aria-label for elements from the Shell component that required it.
  • Added aria-label for the pagination and items-per-page select.
  • Changed heading order for the specifications page in regards to accessibility issue related to their order.
  • Added aria-label for the specifications actions (download/upload).
  • Fixed hydration errors related to mantine.
  • Fixed hydration errors related to the wallet providers.
  • Added an InitialPageLogo component that will display the Cartesi logo during the initial load of the app. For a split second (or more time, depending on internet connection) initially the app displays an empty page. I wanted to mitigate that with InitialPageLogo. I did this with the goal to improve the initial UI of the app:

initial-page-logo

  • Fixed a minor issue with the empty specifications UI appearing for a split second even when you have some specifications:
Screen.Recording.2025-01-30.at.14.26.29.mov

After the changes, the accessibility score across all pages should be around ~95%:

lighthouse-score

2 main issues related to accessibility remain:

  • aria-label is missing for the wallet connect modal. There's an issue about that in their repo.
  • Insufficient contract between quite a few elements in the app, but mostly buttons.

The first one is not something that can be addressed on our side. The second one requires changes in the UI theme so I decided to leave those out for the time being.

Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollups-explorer-arbitrum-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-arbitrum-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-base-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-base-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-optimism-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-optimism-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-sepolia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm
rollups-explorer-workshop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 1:33pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Lighthouse scores
1 participant