Skip to content

Commit

Permalink
NTP: remove clickable background for branded wallpapers"
Browse files Browse the repository at this point in the history
  • Loading branch information
petemill committed Jun 10, 2021
1 parent 56b2011 commit 0bbb092
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions components/brave_new_tab_ui/components/default/page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,6 @@ export const FooterContent = styled('div')`
}
`

export const VisitableBackground = styled('a')`
z-index: -1;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: block;
cursor: pointer;
`

function getPageBackground (p: HasImageProps) {
// Page background is duplicated since a backdrop-filter's
// ancestor which has blur must also have background.
Expand Down
7 changes: 0 additions & 7 deletions components/brave_new_tab_ui/containers/newTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1153,13 +1153,6 @@ class NewTabPage extends React.Component<Props, State> {
<BraveTodayHint />
</Page.GridItemNavigationBraveToday>
}
{isShowingBrandedWallpaper && newTabData.brandedWallpaperData &&
newTabData.brandedWallpaperData.logo &&
<Page.VisitableBackground
href={newTabData.brandedWallpaperData.logo.destinationUrl}
onClick={this.onClickLogo}
/>
}
</Page.Page>
{ newTabData.showToday &&
<BraveToday
Expand Down

0 comments on commit 0bbb092

Please sign in to comment.