Skip to content

Commit dafc52d

Browse files
committed
fix: rename css class, fix click event type
1 parent bb34e80 commit dafc52d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/pluggableWidgets/skiplink-web/src/SkipLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function SkipLink(props: SkipLinkContainerProps) {
1717
}
1818
}, [skipLinkRef.current]);
1919

20-
function handleClick(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void {
20+
function handleClick(event: MouseEvent): void {
2121
event.preventDefault();
2222
let main: HTMLElement;
2323
const mainByID = document.getElementById(props.mainContentId);
@@ -47,7 +47,7 @@ export function SkipLink(props: SkipLinkContainerProps) {
4747
return (
4848
<a
4949
ref={skipLinkRef}
50-
className={`skip-link ${props.class}`}
50+
className={`widget-skip-link ${props.class}`}
5151
href={`#${props.mainContentId}`}
5252
tabIndex={props.tabIndex}
5353
onClick={handleClick}

packages/pluggableWidgets/skiplink-web/src/ui/SkipLink.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.skip-link {
1+
.widget.skip-link {
22
position: absolute;
33
top: 0;
44
left: 0;
@@ -14,7 +14,7 @@
1414
font-weight: bold;
1515
}
1616

17-
.skip-link:focus {
17+
.widget.skip-link:focus {
1818
transform: translateY(0);
1919
outline: none;
2020
}

0 commit comments

Comments
 (0)