-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update WordPress.com Reader icons to use Core Icons (#97877)
Update the Subscribe, Subscribed, Unsubscribe, and View Feed icon to use Core Icons.
- Loading branch information
Showing
24 changed files
with
79 additions
and
244 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 was deleted.
Oops, something went wrong.
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
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
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
13 changes: 0 additions & 13 deletions
13
client/landing/subscriptions/components/settings/icons/feed-icon.tsx
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
client/landing/subscriptions/components/settings/icons/index.ts
This file was deleted.
Oops, something went wrong.
27 changes: 9 additions & 18 deletions
27
client/landing/subscriptions/components/settings/icons/unsubscribe-icon.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 |
---|---|---|
@@ -1,21 +1,12 @@ | ||
type UnsubscribeIconProps = { | ||
import { Icon, close } from '@wordpress/icons'; | ||
|
||
interface UnsubscribeIconProps { | ||
className?: string; | ||
}; | ||
iconSize?: number; | ||
} | ||
|
||
const UnsubscribeIcon = ( { className }: UnsubscribeIconProps ) => ( | ||
<svg | ||
className={ className } | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M4 4.5H16V11H17.5V4.5V3H16H4H2.5V4.5V15C2.5 16.1046 3.39543 17 4.5 17H11.5V15.5H4.5C4.22386 15.5 4 15.2761 4 15V4.5ZM14.5 6.5H5.5V8H14.5V6.5ZM9.5 9.5H5.5V11H9.5V9.5ZM13 11H12V12H13V11ZM12 9.5H10.5V11V12V13.5H12H13H14.5V12V11V9.5H13H12ZM9.5 12H5.5V13.5H9.5V12ZM19.75 17V15.5H13.75V17H19.75Z" | ||
/> | ||
</svg> | ||
); | ||
export default function UnsubscribeIcon( props: UnsubscribeIconProps ): JSX.Element { | ||
const { className, iconSize } = props; | ||
|
||
export default UnsubscribeIcon; | ||
return <Icon className={ className } icon={ close } size={ iconSize || 20 } />; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Icon, plus } from '@wordpress/icons'; | ||
|
||
interface ReaderFollowFeedIconProps { | ||
iconSize: number; | ||
} | ||
|
||
export default function ReaderFollowFeedIcon( props: ReaderFollowFeedIconProps ): JSX.Element { | ||
const { iconSize } = props; | ||
|
||
return <Icon key="follow" className="reader-follow-feed" icon={ plus } size={ iconSize } />; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Icon, published } from '@wordpress/icons'; | ||
|
||
interface ReaderFollowingFeedIconProps { | ||
iconSize: number; | ||
} | ||
|
||
export default function ReaderFollowingFeedIcon( | ||
props: ReaderFollowingFeedIconProps | ||
): JSX.Element { | ||
const { iconSize } = props; | ||
|
||
return ( | ||
<Icon key="following" className="reader-following-feed" icon={ published } size={ iconSize } /> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.