-
Notifications
You must be signed in to change notification settings - Fork 869
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Brave News]: Tweaks round 4 (uplift to 1.62.x) (#21513)
Uplift of #21495 (squashed) to beta
- Loading branch information
1 parent
9b5f1bd
commit 44860eb
Showing
7 changed files
with
37 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
components/brave_new_tab_ui/components/default/braveNews/customize/FollowButton.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
components/brave_news/browser/resources/shared/FollowButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import Button, { ButtonProps } from '@brave/leo/react/button' | ||
import Icon from '@brave/leo/react/icon' | ||
import * as React from 'react' | ||
import styled from 'styled-components' | ||
|
||
const StyledButton = styled(Button)` | ||
--leo-button-color: rgba(150, 150, 150, 0.8); | ||
backdrop-filter: blur(64px); | ||
` | ||
|
||
export default function FollowButton(props: ButtonProps<undefined, boolean> & { following: boolean }) { | ||
const { following, ...rest } = props | ||
return <StyledButton {...rest} fab size='tiny'> | ||
<Icon name={following ? 'minus' : 'plus-add'} /> | ||
</StyledButton> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters