Skip to content

Commit

Permalink
refactor(Link)!: Remove normal-visitable view (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenjer authored Nov 8, 2023
1 parent 743dd2b commit 3081e91
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 @@ -13,8 +13,7 @@ $block: '.#{variables.$ns}link';
outline: 2px solid var(--g-color-line-focus);
}

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

Expand All @@ -34,8 +33,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 3081e91

Please sign in to comment.