Skip to content

Commit fbbd3a5

Browse files
author
Kubit
committed
Add aria-current prop to link
1 parent a6bfd68 commit fbbd3a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/link/stories/link.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const args = {
4040
},
4141
iconPosition: LinkPositionType.RIGHT,
4242
draggable: false,
43+
['aria-current']: true,
4344
themeArgs: themesObject[themeSelected][STYLES_NAME.LINK],
4445
};
4546

src/components/link/types/link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { LinkTargetType } from './target';
2323

2424
type LinkAriaAttributes = Pick<
2525
React.AriaAttributes,
26-
'aria-label' | 'aria-describedby' | 'aria-disabled'
26+
'aria-label' | 'aria-describedby' | 'aria-disabled' | 'aria-current'
2727
>;
2828
export interface ILinkStandAlone extends LinkAriaAttributes {
2929
action?: LinkActionType;

0 commit comments

Comments
 (0)