Skip to content

Commit

Permalink
feat: remove the external url icon form the Link component
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Nov 11, 2024
1 parent a9c1dba commit 089ed99
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 20 deletions.
4 changes: 0 additions & 4 deletions packages/keybr-widget/assets/open-in-new.svg

This file was deleted.

12 changes: 0 additions & 12 deletions packages/keybr-widget/lib/components/text/Link.module.less
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
.root {
/* Empty. */
}

.external:dir(ltr) {
padding-inline-end: 1.3rem;
background: url(../../../assets/open-in-new.svg) no-repeat center right;
background-size: 1rem;
}

.external:dir(rtl) {
padding-inline-end: 1.3rem;
background: url(../../../assets/open-in-new.svg) no-repeat center left;
background-size: 1rem;
}
3 changes: 1 addition & 2 deletions packages/keybr-widget/lib/components/text/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function Link({
href,
target,
download,
external,
title,
children,
...props
Expand All @@ -19,7 +18,7 @@ export function Link({
<Component
{...props}
id={id}
className={clsx(styles.root, external && styles.external, className)}
className={clsx(styles.root, className)}
href={href}
target={target}
download={download}
Expand Down
1 change: 0 additions & 1 deletion packages/keybr-widget/lib/components/text/Link.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type LinkProps = {
readonly href?: string;
readonly target?: string;
readonly download?: string;
readonly external?: boolean;
readonly title?: string;
readonly children?: ReactNode;
} & MouseProps;
1 change: 0 additions & 1 deletion packages/page-practice/lib/settings/lesson/BenfordProp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export function BenfordProp(): ReactNode {
<Link
href="https://en.wikipedia.org/wiki/Benford's_law"
target="_blank"
external={true}
>
{chunks}
</Link>
Expand Down

0 comments on commit 089ed99

Please sign in to comment.