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

[sparkle] - chore: ditch z-index classes #10212

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JulesBelveze
Copy link
Contributor

Description

This PR aims at ditching all existing z-indexes on sparkle components and to add a linting rule to prevent from adding new ones.

As we are not doing anything extremely fancy for now there should be no need to use z-indexes. Also, adding z-indexes conflicts with indexes from Radix.

Risk

Quite important blast radius UX wise

Deploy Plan

  • Publish sparkle RC
  • Upgrade front
  • Publish sparkle

…ndex classes

 - Simplified import order rules by removing categorized comments and redundant groups
 - Enforced a new ESLint rule to prevent the use of z-index (s-z-) Tailwind classes in JSX
 - Updated ESLint rules to split a long selector onto multiple lines for better readability
 - Removed z-index related tailwind classes (`s-z-*`) from various components to comply with new linting rules forbidding z-index usage
 - Added missing newline at end of .eslintrc.js file to follow convention
 - Updated the package-lock.json and package.json to reflect the new version number
@JulesBelveze JulesBelveze marked this pull request as draft January 24, 2025 13:47
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