Skip to content

Fix: Merge duplicate CSS selector to improve maintainability#89

Merged
Harshithk951 merged 5 commits into
mainfrom
fix/css-duplicate-selector
May 14, 2026
Merged

Fix: Merge duplicate CSS selector to improve maintainability#89
Harshithk951 merged 5 commits into
mainfrom
fix/css-duplicate-selector

Conversation

@Harshithk951

Copy link
Copy Markdown
Owner

Changes

  • Merged duplicate .tilted-card-img selector into single rule
  • Fixed SonarQube maintainability issue (css:S4666)

Technical Details

  • Issue: Duplicate CSS selector '.tilted-card-img' used in two separate rule sets
  • Impact: Could lead to unexpected cascading behavior and make debugging difficult
  • Solution: Merged all declarations into a single selector rule

Testing

  • UI/UX remains unchanged
  • No visual or functional breaks in production
  • CSS code quality improvement only

- Wrap context provider value in useMemo to prevent unnecessary rerenders
- Fix SonarQube performance issue (javascript:S6481)
- Maintain stable array identity for MouseEnterContext.Provider value
- Remove role='presentation' from generic div elements per SonarQube javascript:S6819
- Fixes accessibility issues in 3d-card, comet-card, and mac-os-dock components
- Improves ARIA compliance without affecting UI/UX
- Replace div with role='region' with semantic <section> element
- Fixed SonarQube accessibility issue (javascript:S6819)
- Applied fixes to logo-loop and marquee components
- Improves ARIA compliance without affecting UI/UX
- Replace nested ternary operation with independent function
- Fixed SonarQube maintainability issue (javascript:S3358)
- Improves code clarity and maintainability
- Merged duplicate .tilted-card-img selector into single rule
- Fixed SonarQube maintainability issue (css:S4666)
- Improves CSS code quality without affecting visual output
@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
my-portfolio Ready Ready Preview, Comment May 14, 2026 9:41am

@sonarqubecloud

Copy link
Copy Markdown

@Harshithk951 Harshithk951 merged commit 3864fad into main May 14, 2026
5 checks passed
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.

1 participant