-
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: Expensify help website color code and caret icons are not updated #17491
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? |
docs/_sass/_main.scss
Outdated
padding-left: 4px; | ||
|
||
&.icon-left, &.icon-right, &.icon-up, &.icon-down { | ||
width: 16px; |
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a color variable for icons, if not it should be #8B9C8F
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.
Good point about how to set these... is there any way to do it via CSS?
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? |
docs/_layouts/default.html
Outdated
@@ -22,7 +22,7 @@ | |||
|
|||
<div class="lhn-header"> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shawnborton that is bars-icon
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.
Can you share a screenshot please?
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.
@shawnborton bars icon in left
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.
Ah thank you. Yeah, let's use this one instead: menu.svg.zip
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.
@shawnborton any more problems? If temporarily not available, I'll push code to continue the review
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 this is generally looking good. Did border colors get updated too?
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.
@shawnborton I updated border-right-color of LHN is "#1A3D32"
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.
Cool, that is correct
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 |
docs/Gemfile.lock
Outdated
nokogiri (1.13.10-x86_64-linux) | ||
racc (~> 1.4) |
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.
Why we need this changes in this file, seems irrelevant here
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.
Sorry I forgot restore after run in local
docs/_includes/article-card.html
Outdated
@@ -3,6 +3,6 @@ | |||
<h3 class="title">{{ include.title }}</h3> | |||
</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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class name is not correct here
docs/_sass/_main.scss
Outdated
} | ||
|
||
|
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.
Unnecessary Line break
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.
@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 |
docs/_sass/_main.scss
Outdated
@@ -286,7 +295,7 @@ button { | |||
#content-area { | |||
display: flex; | |||
flex-direction: column; | |||
background-color: $color-super-dark-green; | |||
background-color: $color-appBG; |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove it if give the body a correct color @shawnborton
docs/_sass/_main.scss
Outdated
} | ||
} | ||
} | ||
|
||
&__fine-print { | ||
color: $color-gray-green; | ||
color: $color-icons; |
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 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! |
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 tests well, thanks!
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.
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 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
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