-
Notifications
You must be signed in to change notification settings - Fork 561
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
Added fix for issue #3867 - TextInput action hover state is incorrect #3894
Added fix for issue #3867 - TextInput action hover state is incorrect #3894
Conversation
|
Hi! After discussing with @maximedegreve, I don't think fixing this just in the stories is the right approach here. We need to think about how we want to address this in the component itself 🤔 We can close this pull request and start with API. Sorry about that! |
sure @siddharthkp no problem :) |
@cs25-esc, Gave it more thought, I think we can keep this PR! Summarised the different parts of the problem here: #3867 (comment) The 2nd point is the only one relevant to this pull request. We should remove changeset and custom styles from the story |
Hi @siddharthkp so you mean i can continue to work on this PR ? |
Yes. but, we need to change the scope of this pull request. From #3867 (comment),
|
Hi @siddharthkp will this be helpful ? A default value will be there whenever the page loads. Screen.Recording.2023-11-08.at.9.10.28.PM.mov |
Yep! I think that's the way to do it. Looking at the video, it's a bit odd that the width of the input changes. Is there a way to make sure that doesn't happen? 🤔 |
yeah it happens due to the clear input icon if
Like this ? Screen.Recording.2023-11-09.at.12.35.40.PM.mov |
That looks much nicer! |
Shall i make the changes then ? |
Yes, go for it 👍 |
i have a doubt like, i could see components WithTrailingAction and WithTooltipDirection in the same story share same implementation so shall i make changes for both ? |
ideally i need to make changes only for component WithTrailingAction |
Yes please |
.changeset/issue-3867-changeset.md
Outdated
"@primer/react": patch | ||
--- | ||
|
||
TextInput.features.stories: Changes made on components 'WithTrailingAction' and 'WithTooltipDirection' which fixes |
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.
changesets are added to release notes, so we usually don't usually add stories to them. You can delete this file
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.
sure
sx={{ | ||
width: '30px', | ||
display: 'flex', | ||
alignItems: 'center', |
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 would have to come back to you next week to review this approach!
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.
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.
That's expected because we did make a visual change :)
Added the label to update snapshots, should update in a few minutes
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.
it seems update snapshots label has been removed, anyway to achieve this?
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 can add that for you
deleted changeset file since changesets are added to release notes
Hi @cs25-esc, I made some tiny changes (moved styles from story to component) to get a review on the visual feedback. Hope that's okay! Note: The snapshot tests are failing, I will update them after getting a review on the hover colors :) |
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |
This fix resolves :
Screen.Recording.2023-10-28.at.12.13.43.PM.mov