-
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 global nav styles #29428
Fix global nav styles #29428
Conversation
@0xmiroslav 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] |
changing the assignment of C+ per this discussion |
styles: PropTypes.arrayOf(PropTypes.object), | ||
styles: stylePropTypes, | ||
|
||
/** If the HeaderGap is placed in the LHP */ |
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.
It's rather my typo 😅
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.
Branch got merged with main and is ready for review. |
Can we also rename all variables? I don't see any occurrences of |
Sure on it |
done 👌🏼 @situchan |
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.
Looking good, just a couple of comments
}; | ||
|
||
class HeaderGap extends PureComponent { | ||
render() { | ||
return <View style={[styles.headerGap, ...this.props.styles]} />; | ||
if (!this.props.isSidebar) { |
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.
NAB: IMO it makes more sense to reverse this and return the sidebar if the prop is passed rather than checking if it is not passed
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.
Done 👌🏼
@robertKozik please fix conflict when you get a chance |
@situchan main merged |
asked @situchan if he can review this PR on slack |
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 was only able to glance over the code but it looks good to me as long as @situchan's test goes well 🙇
resolved conflicts 👌🏼 |
Maybe you asked on C+ channel but all C+ don't have access after slack migration. |
@hayata-suenaga Can we close this PR/issue per your slack message? It's related to the PR which is going to be reverted anyways |
@robertKozik can you please redirect that message here? I don't have any context. |
Yes I'm closing this issue now 🙇 |
@situchan I assigned you to the issue for payment |
Details
Fixed issues related to global nav styling:
Update:
Fixed Issues
$ #29057
PROPOSAL: N/A
Tests
http://localhost:8082/not-found
) page. Check if the margins are set correctly.Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: Native
OLD:
Android: mWeb Chrome
OLD:
iOS: Native
OLD:
iOS: mWeb Safari
OLD:
MacOS: Chrome / Safari
OLD:
MacOS: Desktop