-
Notifications
You must be signed in to change notification settings - Fork 3k
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: clicking title of url preview don't open site #21717
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 |
---|---|---|
|
@@ -355,6 +355,18 @@ function getBackgroundColorStyle(backgroundColor) { | |
}; | ||
} | ||
|
||
/** | ||
* Returns a style for text color | ||
* | ||
* @param {String} color | ||
* @returns {Object} | ||
*/ | ||
function getTextColorStyle(color) { | ||
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. Why do we need this vs just using 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. @thesahindia pointed it out in the previous comment #21717 (comment)
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. Nice, thanks for clarifying! |
||
return { | ||
color, | ||
}; | ||
} | ||
|
||
/** | ||
* Returns a style with the specified borderColor | ||
* | ||
|
@@ -1230,6 +1242,7 @@ export { | |
getAutoGrowHeightInputStyle, | ||
getBackgroundAndBorderStyle, | ||
getBackgroundColorStyle, | ||
getTextColorStyle, | ||
getBorderColorStyle, | ||
getBackgroundColorWithOpacityStyle, | ||
getBadgeColorStyle, | ||
|
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.
We replaced the
Text
component toTextLink
to make it clickable, but we didn't check the clickable area for thepv2
padding and full width area. This caused a regression here.