Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Hasan/Pr 1872 lighthouse v11 accessibility issue #5654

Conversation

hasan-deriv
Copy link
Contributor

@hasan-deriv hasan-deriv commented Sep 20, 2023

Changes:

  • Fixed accessibility issues of deriv.com

@vercel
Copy link

vercel bot commented Sep 20, 2023

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

Name Status Preview Updated (UTC)
deriv-com ✅ Ready (Inspect) Visit Preview Sep 22, 2023 11:11am

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 27
🟢 Accessibility 97
🟢 Best practices 92
🟢 SEO 100
🟠 PWA 80

Lighthouse ran on https://deriv-com-git-fork-hasan-deriv-pr-1872-lhv11-accessibili-a709eb.binary.sx/

<Image
src={PartnerNavLogo}
className={partners_nav_logo}
alt="deriv partners logo"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hasan-deriv shouldn't we localize all alt tags?

@@ -137,7 +137,7 @@ const DCommonBanner = () => {
<StyledContainer jc="flex-start">
<ContentWrapperStyle is_rtl={is_rtl}>
<Content>
<StyledTradingLogin src={DerivMT5Logo} />
<StyledTradingLogin src={DerivMT5Logo} alt="Deriv MT5 logo" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we need translation for alt

@@ -13,7 +13,7 @@ import useRegion from 'components/hooks/use-region'
const MarketTab = () => {
const [selected_market, setSelectedMarket] = useState<TAvailableLiveMarkets>('fx')
const [tab_name, setTabName] = useState('Forex')
const [linkToMarketPage, setLinkToMarketPage] = useState('/markets/forex/')
const [linkToMarketPage, setLinkToMarketPage] = useState<`/${string}`>('/markets/forex/')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this been used in several places , can we add this type in a common place

Copy link
Contributor

@mayuran-deriv mayuran-deriv Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TpathString = /${string}
Tstring

selected={selected_tab === index}
aria-selected={selected_tab === index ? 'true' : 'false'}
aria-expanded={selected_tab === index ? 'true' : 'false'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aria-expanded={selected_tab === index ? 'true' : 'false'}
aria-expanded={selected_tab === index}

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
3.2% 3.2% Duplication

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

Successfully merging this pull request may close these issues.

3 participants