-
Notifications
You must be signed in to change notification settings - Fork 367
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: [M3-7256] - Added spacing for Hively external link #9776
Conversation
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.
Confirmed the component looks good in Storybook.
I also tested this in Cloud by removing the conditional on L188 of ExpandableTicketPanel.tsx
. I was seeing the bottom of the external link icon get cut off on desktop viewports. (see the first ticket in the screenshot below)
Does adding a little bit of marginTop and marginBottom (see the second ticket in the screenshot below for example, that's 5px
) resolve the issue sufficiently?
@@ -48,7 +51,7 @@ export const Hively = (props: Props) => { | |||
<> | |||
<Divider /> | |||
<Stack alignItems="center" direction="row" pl={1} spacing={1.5}> | |||
<Typography mr={3}> | |||
<Typography pr={2.5}> |
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.
Am I recalling correctly from our cafe discussions that we preferred marginRight
and paddingRight
over Tailwind-like prop styles (mr
and pr
), so as to reduce the number of kinds of styling we have in the code base?
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.
I think we decided to use sx
over styling via props in general, although I really enjoy the inline props styling 😖
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.
Thanks for this!
@mjac0bs What browser / version are you using? I'm on |
Hmm, the same, it appears: I am confused: Screen.Recording.2023-10-10.at.1.57.14.PM.mov |
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.
@bnussman-akamai that would require a refactor of |
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.
Approving this after talking offline. The clipping issue is inconsistent and can only be seen in some cases when a browser window is a certain width and zoom (less than 100%), which seems like an unlikely edge case. Experimenting with margin and padding also didn't seem to produce a fix. It would be nice to look into this a little more in the follow up ticket -- maybe Link issues would solve this -- but main issue resolved in this PR looks good.
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.
Looks good to me! (Safari btw 🤓)
Description 📝
Feedback Smiley Ratings should be easily clickable, however it overlaps with the "How did I do?" link
Changes 🔄
margin
is overwritten due to being in aStack
, so switching topadding
which is the more better approach.Preview 📷
How to test 🧪
Prerequisites
yarn storybook
Reproduction steps
Verification steps
As an Author I have considered 🤔
Check all that apply