-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(lemon-ui): Properly indicate clickable and disabled LemonTag #23853
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -492,7 +492,7 @@ export function StatusTag({ survey }: { survey: Survey }): JSX.Element { | |
} as Record<ProgressStatus, LemonTagType> | ||
const status = getSurveyStatus(survey) | ||
return ( | ||
<LemonTag type={statusColors[status]} style={{ fontWeight: 600 }} data-attr="status"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wonder how this crept in past the eslint rule? It was only added 3 months ago There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the rule only applies to props on HTML elements, and not React components 🤔 |
||
<LemonTag type={statusColors[status]} className="font-semibold" data-attr="status"> | ||
{status.toUpperCase()} | ||
</LemonTag> | ||
) | ||
|
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.
@EDsCODE Looks like this
aria-disabled
was added in #22385. What was the reason?