-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add new vertical line separator instead of borderRight #18022
Add new vertical line separator instead of borderRight #18022
Conversation
@puneetlath @s77rt One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Hi @narefyev91 👋 Can we please have an update here? I see the PR is marked as draft now. I noticed the separator looks a little different especially since it's surrounded by the outside border, they look mismatched. Is this put on hold for that matter or something else? Let me know what should be done to move this forward |
Hey - based on internal process my changes should be checked by our QA first - and after approval i can mark PR as ready to review. |
@s77rt I do not know why no one raise this before - but this is what i see on main branch on my emulator (mWeb for android) - not sure if it happens only for me. Border top overlaps borderRight - and this is seems a new issue |
@narefyev91 If the issue exists on main then it's technically out of the scope of this PR. I'm not referring to that, I'm referring to the change on width. Open two tabs staging and localhost and notice the diff. On localhost (dev) the separator looks a littler thicker. |
LOL - maybe some visual effects? |
The problems that originate from 1px are really one of a kind 😅. This is one may be related to browser optimisation. Can you please check how can we make it look as before? |
Maybe we can try some platform separation ? |
I would really prefer not to go that way |
Agree ! Seems our case https://stackoverflow.com/questions/42710882/css-border-1px-appear-as-0-667px-or-1px-depending-on-the-computer-display-res. I will try some workaround to make browser working consistently |
@s77rt i added border-box item, and i could not really see a difference on mac safari, chrome, firefox browsers. |
@narefyev91 box-sizing: border-box is already the default. I still see the diff. |
Can you maybe post in which browser and machine you see the diff? |
Chrome on Linux |
@s77rt seems width will not work also - based on discovering later at nigh - browser will still making calculation based on monitor size - and will apply different border width - while width itself will be the same. That's why you can see that difference on your machine. I came up with other idea. Attachment button - in which we initially have issue - is not a wrong place - it doesn't create an issue. The bad place - right area in which we have input, which taken some border space from other View. What if we remove border from attachment (as we discussed earlier) and apply border to View in which right section is presented? Now the View in which right section presented will push textinput to right (without overlapping) and we remove 1px from left - which will not make any impact on element positions. And in all platforms we will not see any differences Some result from devices |
What a solution! 😂 Given that this is an equally valid solution I'm okay with that. But let's keep the border in a class so just rename chatItemAttachBorder to something fitting and use on in text input instead of attachment button. |
Yup - sorry that didn't get to this idea initially.... |
@narefyev91 Please tag me again once this is ready for review |
RETESTS SUMMARY This fix is verified on Branch PR Draft narefyev91:add-new-separator-for-action-composer Tests are conducted on the following devices: The above tests are executed with a 100% pass value |
@s77rt ready for review |
Reviewer Checklist
Screenshots/Videos |
@narefyev91 Can you please update the tests to:
and tag me again |
@s77rt done |
@narefyev91 Thank you! |
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.
LGTM! 🚀
cc @puneetlath
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's beautiful!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.9-12 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
Details
Remove blurry border right - which were overlapped by Composer TextInput
Fixed Issues
$ #16848
$ #16848 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android