Fix: Expensify help website color code and caret icons are not updated - #17491
Conversation
|
@stitesExpensify Please 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] |
|
Adding @Santhosh-Sellavel as C+ since they are the C+ on the issue. Not sure why they weren't auto-assigned... |
|
@dukenv0307 Make sure to the link issue correctly before marking the PR ready for review! |
|
@Santhosh-Sellavel I'm sorry for that. I updated the link issue please check again |
|
Please ensure the same on other PRs as well, because it could affect automations. |
|
@Expensify/design Are we good here or missing any changes? |
| padding-left: 4px; | ||
|
|
||
| &.icon-left, &.icon-right, &.icon-up, &.icon-down { | ||
| width: 16px; |
There was a problem hiding this comment.
I think these should be 20px. I also think there is probably a cleaner way to do this? Let's create some kind of base icon class that uses 20px for dimensions and uses our standard icon fill color. This way we have one base class instead of needing to repeat these classes so many times.
There was a problem hiding this comment.
@shawnborton for set color for icon. Actually, I set it by pass fill attr into path in svg file. If you want to use css to set color, I think we could covert our standard icon fill color to filter css. Do you have any solution to set it?
There was a problem hiding this comment.
We should have a color variable for icons, if not it should be #8B9C8F
There was a problem hiding this comment.
Good point about how to set these... is there any way to do it via CSS?
There was a problem hiding this comment.
@shawnborton I saw that color variable for icons and I used this color to set color of svg icon. Other than filter css, I dont't know other way now.
There was a problem hiding this comment.
Okay yeah, let's just keep the icons colored as they are then. Thanks!
|
Left a comment. Wow, I had no idea we were using fontawesome before but that was definitely a mistake. Can we rip out all of the other fontawesome references/styles/etc given that we don't need them anymore? |
|
@shawnborton Do you want to me replace bars icon that's the only fontawesome icon left by svg |
|
Can you show me what that looks like? |
| <div id="header-button"> | ||
| <i id="angle-up-icon" class="fa-solid fa-angle-up icon hide"></i> | ||
| <img src="/assets/images/arrow-up.svg" class="icon icon-up"></img> | ||
| <i id="bars-icon" class="fa-solid fa-bars icon"></i> |
There was a problem hiding this comment.
Can you share a screenshot please?
There was a problem hiding this comment.
Ah thank you. Yeah, let's use this one instead: menu.svg.zip
There was a problem hiding this comment.
@shawnborton any more problems? If temporarily not available, I'll push code to continue the review
There was a problem hiding this comment.
I think this is generally looking good. Did border colors get updated too?
There was a problem hiding this comment.
@shawnborton I updated border-right-color of LHN is "#1A3D32"
|
One thing I am realizing is that it's super hard to understand the color names. Like Thoughts on something like that? cc @grgia as we've talked about color names before. |
|
@shawnborton yeah let's talk about cleaning up our color naming system as part of the theme-switching project! |
|
Ah yeah, good shout @grgia |
| nokogiri (1.13.10-x86_64-linux) | ||
| racc (~> 1.4) |
There was a problem hiding this comment.
Why we need this changes in this file, seems irrelevant here
There was a problem hiding this comment.
Sorry I forgot restore after run in local
| </div> | ||
| <div class="right-icon"> | ||
| <i class="fa-solid fa-angle-right icon"></i> | ||
| <img src="/assets/images/arrow-right.svg" class="base-icon icon icon"></img> |
There was a problem hiding this comment.
class name is not correct here
| height: 20px; | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
Unnecessary Line break
There was a problem hiding this comment.
@Santhosh-Sellavel I just fixed it. Please help to check again
|
@dukenv0307 Can you update the screens in the PR, please? @shawnborton Are good here any other changes expected here? |
|
I think we're good, will confirm once screenshots are updated. |
|
@Santhosh-Sellavel I just updated screens in PR, please check again |
| display: flex; | ||
| flex-direction: column; | ||
| background-color: $color-super-dark-green; | ||
| background-color: $color-appBG; |
There was a problem hiding this comment.
If we give the body a correct color ($color-appBG) we might not even need this here, but I don't feel strongly.
There was a problem hiding this comment.
should we remove it if give the body a correct color @shawnborton
|
|
||
| &__fine-print { | ||
| color: $color-gray-green; | ||
| color: $color-icons; |
There was a problem hiding this comment.
We should add a new color for this.
The color value is #AFBBB0 and we could name it something like $color-light-gray-green in colors.css
Then in main.scss, we would use $color-text-supporting: $color-light-gray-green
Let me know if that makes sense.
|
@shawnborton I just updated |
|
Okay this feels good to me. All you @grgia @stitesExpensify @Santhosh-Sellavel |
|
Up & Menu buttons are both shown at the same time, only one should be present at a time Screen.Recording.2023-04-21.at.4.08.46.AM.mov |
|
@Santhosh-Sellavel I missed class and id when change to svg. I updated, please help to check again |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-22.at.1.54.13.AM.movMobile Web - ChromeScreen_Recording_20230422_020822_Chrome.mp4Mobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.-.2023-04-22.at.01.55.07.mp4 |
|
@grgia Not sure shouldn't this be internal QA? |
Screen_Recording_20230422_020916_Chrome.mp4Selection fill is a bit off in mWeb in Android, should we do something about it @shawnborton? If so let's create a new bug to handle it let me know if needs to be reported thanks! |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
Looks good to me tests well, thanks!
cc: @puneetlath
puneetlath
left a comment
There was a problem hiding this comment.
Oh interesting. Not sure why I didn't get auto-assigned to this PR.
In any case, thanks for doing all the legwork everyone! It looks good to me too. Let's wait for @shawnborton's approval though before merging.
|
@shawnborton please help to check again and approval the PR |
|
@stitesExpensify Please help to check and approval the PR |
|
Bump @shawnborton |
|
Colors look good to me. Did we ever fix the bug where both the menu icon and the caret icon show at the same time? |
|
@shawnborton This bug is reported by @Santhosh-Sellavel and I fixed it after the report |
|
Cool, all good on my end. @stitesExpensify all you! |
|
Gonna go ahead and merge since we have a good amount of approvals here. |
|
✋ 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.5-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.5-6 🚀
|

Details
Expensify help website color code and caret icons are not updated
Fixed Issues
$ #17238
PROPOSAL: #17238 (comment)
Tests
Note: This case could be only tested in Web, mobile Web
Offline tests
Same above
QA Steps
Note: This case could be only tested in Web, mobile Web
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screencast.2023-04-19.10.13.07.mp4
Mobile Web - Chrome
Record_2023-04-19-10-13-55.mp4
Mobile Web - Safari
original-37B3A18C-F16D-4666-90E6-A3D5B786F25E.mp4
Desktop
NA
iOS
NA
Android
NA