Skip to content

Commit

Permalink
refactor(link): remove normal-visitable view
Browse files Browse the repository at this point in the history
  • Loading branch information
helenjer committed Aug 17, 2023
1 parent e191c0b commit 601205d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
6 changes: 2 additions & 4 deletions src/components/Link/Link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ $block: '.#{variables.$ns}link';
outline: 0;
}

&_view_normal,
&_view_normal-visitable {
&_view_normal {
color: var(--g-color-text-link);
}

Expand All @@ -37,8 +36,7 @@ $block: '.#{variables.$ns}link';
}
}

&_visitable,
&_view_normal-visitable {
&_visitable {
&:visited {
color: var(--g-color-text-link-visited);
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import {eventBroker} from '../utils/event-broker';

import './Link.scss';

export type LinkView = 'normal' | 'primary' | 'secondary' | 'normal-visitable';
export type LinkView = 'normal' | 'primary' | 'secondary';

export interface LinkProps extends DOMProps, QAProps {
/**
* 'normal-visitable' view is deprecated, use 'visitable' prop instead
*/
view?: LinkView;
visitable?: boolean;
title?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link/__stories__/Link.new.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
},
argTypes: {
view: {
options: ['normal', 'primary', 'secondary', 'normal-visitable'],
options: ['normal', 'primary', 'secondary'],
control: {type: 'select'},
description: 'test',
},
Expand Down
4 changes: 0 additions & 4 deletions src/components/Link/__stories__/LinkShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export function LinkShowcase() {
name: 'View secondary',
value: 'secondary',
},
{
name: 'View normal-visitable',
value: 'normal-visitable',
},
],
href: [
{
Expand Down

0 comments on commit 601205d

Please sign in to comment.