Update hover color for lounge access icon#24358
Update hover color for lounge access icon#24358aldo-expensify merged 4 commits intoExpensify:mainfrom
Conversation
|
@situchan PR is ready for review! Please have a look. Ty 😄 |
| import Link from '../../../assets/images/link.svg'; | ||
| import LinkCopy from '../../../assets/images/link-copy.svg'; | ||
| import Lock from '../../../assets/images/lock.svg'; | ||
| import LoungeAccess from '../../../assets/images/lounge-access.svg'; |
There was a problem hiding this comment.
Let's remove lounge-access.svg file
| /** The width of the icon. */ | ||
| width: PropTypes.number, | ||
|
|
||
| /** The height of the icon. */ | ||
| height: PropTypes.number, |
There was a problem hiding this comment.
These props are unused and can be removed
| isHovered={this.props.isHovered} | ||
| isPressed={this.props.isPressed} |
There was a problem hiding this comment.
| isHovered={this.props.isHovered} | |
| isPressed={this.props.isPressed} | |
| hovered={this.props.isHovered.toString()} | |
| pressed={this.props.isPressed.toString()} |
| isHovered={this.props.isHovered} | ||
| isPressed={this.props.isPressed} |
There was a problem hiding this comment.
| isHovered={this.props.isHovered} | |
| isPressed={this.props.isPressed} | |
| hovered={this.props.isHovered.toString()} | |
| pressed={this.props.isPressed.toString()} |
| fill: PropTypes.string, | ||
|
|
||
| /** Is icon hovered */ | ||
| isHovered: PropTypes.bool, |
There was a problem hiding this comment.
| isHovered: PropTypes.bool, | |
| hovered: PropTypes.string, |
| isHovered: PropTypes.bool, | ||
|
|
||
| /** Is icon pressed */ | ||
| isPressed: PropTypes.bool, |
There was a problem hiding this comment.
| isPressed: PropTypes.bool, | |
| pressed: PropTypes.string, |
| isHovered: false, | ||
| isPressed: false, |
There was a problem hiding this comment.
| isHovered: false, | |
| isPressed: false, | |
| hovered: 'false', | |
| pressed: 'false', |
| </G> | ||
| <G> | ||
| <Path | ||
| fill={props.isHovered || props.isPressed ? props.fill : themeColors.starDefaultBG} |
There was a problem hiding this comment.
| fill={props.isHovered || props.isPressed ? props.fill : themeColors.starDefaultBG} | |
| fill={props.hovered === 'true' || props.pressed === 'true' ? props.fill : themeColors.starDefaultBG} |
There was a problem hiding this comment.
Thank you man, you saved my day. Update in seconds
|
Updated ! @situchan |
|
@hungvu193 star not changing to white on hover. can you investigate? |
LEt me see |
|
Updated. I forgot to change Icon props name. Should be working fine now Screen.Recording.2023-08-11.at.15.43.00.mov |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
Friendly bump @aldo-expensify |
aldo-expensify
left a comment
There was a problem hiding this comment.
Thanks for the ping!
It looks good to me
|
✋ 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/aldo-expensify in version: 1.3.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.3.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|


Details
Update hover color for lounge access icon
Fixed Issues
$ #22766
PROPOSAL: #22766 (comment)
Tests
Offline tests
Same as Tests.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2023-08-10.at.16.27.48.mov
Mobile Web - Chrome
RPReplay_Final1691662040.MP4
Mobile Web - Safari
Screen.Recording.2023-08-10.at.16.29.53.mov
Desktop
Screen.Recording.2023-08-10.at.16.27.48.mov
iOS
Screen.Recording.2023-08-10.at.16.40.40.mov
Android
Screen.Recording.2023-08-10.at.16.30.35.mov