Skip to content

Commit 7f3de0e

Browse files
Accepted suggestion from @GirlBossRush
1 parent 27853e6 commit 7f3de0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ak-button/ak-button.template.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ type ButtonLinkProps = Pick<ButtonProps, "disabled" | "onClick" | "onKeydown"> &
1717
download?: string;
1818
};
1919

20-
export function linkTemplate(props: ButtonLinkProps) {
21-
const { href, target, disabled, download, rel, onClick, onKeydown } = props;
2220
/**
2321
* @remarks
2422
* The ARIA rules for disabled links specifies that "to communicate a link as ‘disabled,’ remove
2523
* the `href` attribute and style accordingly." Hence the `href=${ifDefined(...)}`.
26-
*
24+
*
2725
* @see {@link https://www.w3.org/TR/html-aria/#example-communicate-a-disabled-link-with-aria | ARIA Disabled Link Rules}
2826
*/
27+
2928
export function linkTemplate(props: ButtonLinkProps) {
29+
const { href, target, disabled, download, rel, onClick, onKeydown } = props;
3030
return html`<a
3131
id="main"
3232
href=${ifDefined(disabled ? null : href)}

vitest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path, { dirname } from "node:path";
1+
import { dirname, resolve } from "node:path";
22
import { fileURLToPath } from "node:url";
33

44
import { playwright } from "@vitest/browser-playwright";
@@ -28,7 +28,7 @@ export default defineConfig(({ mode }) => ({
2828
},
2929
test: {
3030
alias: {
31-
"@goauthentik/elements": path.resolve(__dirname, "./dist"),
31+
"@goauthentik/elements": resolve(__dirname, "./dist"),
3232
},
3333
dir: "./dist",
3434
include: ["**/*.test.js"],

0 commit comments

Comments
 (0)