-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
fix: tabs alignment #6768
fix: tabs alignment #6768
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -272,20 +272,23 @@ export const Project = () => { | |||
tab.isEnterprise ? 'end' : undefined | |||
} | |||
icon={ | |||
<span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this span was breaking alignment and it was added recently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 1 findings(s) 🚩
@@ -272,20 +272,23 @@ export const Project = () => { | |||
tab.isEnterprise ? 'end' : undefined | |||
} | |||
icon={ | |||
<span> | |||
<> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Getting worse: Complex Method
Project already has high cyclomatic complexity, and now it increases in Lines of Code from 276 to 278
Beta | ||
</StyledBadge> | ||
// extra span to avoid badge getting color override from the overly specific parent component | ||
<span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving this span around the styled badge to escape css rule with direct tab span child selector that gets the purple color
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be sensible to update the styling on the tab span instead of adding the extra span? Feels like this fixes the symptom but not the cause. We might need to do the same thing again later? 💁🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would probably also make codescene happier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tab is a material UI component with a very specific rule for its direct span child. I'd need to overrider Material UI internals which I didn't want to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. Seems weird that they'd add that, but yeah, happy with your reasoning there.
Beta | ||
</StyledBadge> | ||
// extra span to avoid badge getting color override from the overly specific parent component | ||
<span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would probably also make codescene happier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 1 findings(s) 🚩
About the changes
Important files
Discussion points