-
Notifications
You must be signed in to change notification settings - Fork 975
Fixes url bar shape when payment is disabled #8207
Conversation
@srirambv would you be able to give this one a go? 😄 |
@@ -242,7 +246,7 @@ class NavigationBar extends ImmutableComponent { | |||
urlbar={this.props.navbar.get('urlbar')} | |||
onStop={this.onStop} | |||
menubarVisible={this.props.menubarVisible} | |||
noBorderRadius={!isSourceAboutUrl(this.props.location)} | |||
noBorderRadius={(isSourceAboutUrl(this.props.location) && this.isPublisherButtonEnabled) || this.isPublisherButtonEnabled} |
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 you don't need to check aboutUrls since it will return false with UrlUtil.isHttpOrHttps
.
noBorderRadius={this.isPublisherButtonEnabled}
should work as expected
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.
Resolves brave#8170 Auditors: @srirambv @bsclifton Test Plan: - with payments disabled visit a site - url border should be shaped
f8f6d74
to
97da92d
Compare
@bsclifton @cezaraugusto I changed the logic now to be the same as is for |
Tested on Windows. Looks good and neat 👍 |
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 great
Resolves #8170 Auditors: @srirambv @bsclifton Test Plan: - with payments disabled visit a site - url border should be shaped
git rebase -i
to squash commits (if needed).Resolves #8170
Auditors
@srirambv @bsclifton
Test Plan