From cb9831a1cbc1127c3504d474dbf2a08fb388e606 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Tue, 10 Feb 2026 07:59:17 -0800 Subject: [PATCH 1/5] test: make relative URL test work on any localhost port --- test/auro-hyperlink.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/auro-hyperlink.test.js b/test/auro-hyperlink.test.js index cc90a13..89659e2 100644 --- a/test/auro-hyperlink.test.js +++ b/test/auro-hyperlink.test.js @@ -26,11 +26,10 @@ describe("auro-hyperlink", () => { `); const anchor = el.shadowRoot.querySelector("a"); + const regex = /^http:\/\/localhost:\d+\/auro$/; + const match = regex.test(anchor.href); - console.log(anchor.href); - - expect(anchor).to.have.attribute("href", "http://localhost:8000/auro"); - expect(anchor).not.to.have.attribute("href", "/auro"); + expect(match).to.be.true; }); it("auro-hyperlink href is absolute URL", async () => { From 279dd650616662606b1f8b556fb59affa029b5e1 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Tue, 10 Feb 2026 07:59:54 -0800 Subject: [PATCH 2/5] fix: correct extra spacing before referrer icon #333 --- src/styles/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/style.scss b/src/styles/style.scss index d05a5af..b2c5084 100644 --- a/src/styles/style.scss +++ b/src/styles/style.scss @@ -39,7 +39,7 @@ // apply focus outline to inline hyperlinks that aren't CTA, nav, or button :host(:not([type='cta']):not([type='nav'])) { .hyperlink{ - display: inline-block; + display: flex; border-radius: 3px; outline-offset: unset; outline-style: solid; From 8d42f69bf750cc88fcaee95006ca897f97ff97a5 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Tue, 10 Feb 2026 08:13:51 -0800 Subject: [PATCH 3/5] fix: remove aria-pressed behavior #239 #332 --- src/auro-hyperlink.js | 1 - src/component-base.mjs | 59 ------------------------------------- test/auro-hyperlink.test.js | 1 - 3 files changed, 61 deletions(-) diff --git a/src/auro-hyperlink.js b/src/auro-hyperlink.js index e253f03..9186e72 100644 --- a/src/auro-hyperlink.js +++ b/src/auro-hyperlink.js @@ -131,7 +131,6 @@ export class AuroHyperlink extends ComponentBase { { expect(anchor).to.have.attribute("role", "button"); expect(anchor).to.have.attribute("tabindex", "0"); - expect(anchor).to.have.attribute("aria-pressed", "false"); expect(anchor).to.have.class("hyperlink--button"); expect(anchor).not.to.have.attribute("href"); }); From 066290a30c4811dc21b94dcec6f639bc6a9cd063 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Tue, 10 Feb 2026 08:48:52 -0800 Subject: [PATCH 4/5] fix: adjust icon alignment #333 --- src/styles/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/style.scss b/src/styles/style.scss index b2c5084..e6bb528 100644 --- a/src/styles/style.scss +++ b/src/styles/style.scss @@ -49,6 +49,11 @@ outline-offset: var(--ds-size-25, vac.$ds-size-25); } } + + [auro-icon] { + position: relative; + top: 1px; + } } // component shape styles From 8364a8b0f79895eae28019f32dc385131ad50faf Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Tue, 10 Feb 2026 09:16:30 -0800 Subject: [PATCH 5/5] fix: remove additional aria-pressed code --- docs/partials/api.md | 2 +- src/component-base.mjs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/partials/api.md b/docs/partials/api.md index 1c2c031..696208f 100644 --- a/docs/partials/api.md +++ b/docs/partials/api.md @@ -276,7 +276,7 @@ The `shape` attribute accepts three values: `rounded`, `pill`, or `circle`. ### Using role="button" -Aside from the standard hyperlink use-case, the `auro-hyperlink` element is intended to be used for button situations as illustrated below. Assuming the role of button, `auro-hyperlink` also will track the `aria-pressed` state. +Aside from the standard hyperlink use-case, the `auro-hyperlink` element is intended to be used for button situations as illustrated below. **Note:** Any `href` will be ignored when using `role="button"`. A click-event must be passed to the element as illustrated in the example below. diff --git a/src/component-base.mjs b/src/component-base.mjs index 78cbaf5..8c7fe86 100644 --- a/src/component-base.mjs +++ b/src/component-base.mjs @@ -56,11 +56,6 @@ export default class ComponentBase extends AuroElement { */ this.defaultReferrerPolicy = "strict-origin-when-cross-origin"; - /** - * @private - */ - this.ariapressed = "false"; - /** * @private */