Skip to content

RC #329#330

Merged
jordanjones243 merged 3 commits into
mainfrom
rc/329
Jan 14, 2026
Merged

RC #329#330
jordanjones243 merged 3 commits into
mainfrom
rc/329

Conversation

@jordanjones243

@jordanjones243 jordanjones243 commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

Alaska Airlines Pull Request

Review Checklist:

  • My update follows the CONTRIBUTING guidelines of this project
  • I have performed a self-review of my own update
RC Checklist

Testing Checklist:

Browsers

Browsers Support Guide

Dev demo link

Android

iOS

Desktop

Scenarios

Framework playground


**By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.**

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!

-- Auro Design System Team

Summary by Sourcery

Refine the auro-hyperlink component’s API, documentation, and demos while improving package exports and tooling configuration.

New Features:

  • Introduce new documentation examples for HTTPS enforcement, relative URLs, URL schemes, external links, typography, and common usage patterns such as role="button" and unsupported URL types.
  • Document and support custom registration usage for the auro-hyperlink component via the exported class API.

Enhancements:

  • Restructure and simplify API and index documentation to better organize property/attribute examples, usage patterns, and theme/restyling guidance.
  • Improve JSDoc types, property descriptions, and initialization defaults for the underlying component base class and layout element.
  • Clarify accessibility guidance for external links, link text, focus order, and visual distinction in the a11y documentation.
  • Modernize demo HTML to load dependent Auro components via ESM-compatible CDN endpoints.
  • Refine README and API reference wording to emphasize multi-brand theming and accessibility improvements.

Build:

  • Update lit and Auro devDependency versions and adjust package exports to include explicit module and types entries for the main entry point.

CI:

  • Enhance the pull request template with an RC testing checklist covering browsers, scenarios, and framework playground validation.

Documentation:

  • Reorganize and expand API documentation with clearer sections for appearance, URL handling, external links, navigation styles, CTA variants, and common usage patterns.

rmenner and others added 3 commits November 21, 2025 19:46
example code updated to reflect latest Auro element APIs
example documentation layout improved
custom registration updated and moved to install page
core element descriptions updated
properties now listed alphabetically
doc build system now uses the latest version of auro-cli
package json configuration updated to support latest auro-cli
additional packages dependencies updated to latest versions
@jordanjones243 jordanjones243 self-assigned this Jan 14, 2026
@jordanjones243
jordanjones243 requested a review from a team as a code owner January 14, 2026 22:32
@sourcery-ai

sourcery-ai Bot commented Jan 14, 2026

Copy link
Copy Markdown

Reviewer's Guide

Refactors and expands auro-hyperlink documentation and examples, tidies base component APIs and typings, improves custom element registration and packaging, updates demos to modern ESM usage, and introduces a richer PR template with explicit RC/testing checklist.

Updated class diagram for auro-hyperlink core components

classDiagram
  class LitElement

  class AuroElement {
    +string appearance
    +string layout
  }

  class ComponentBase {
    +string appearance
    +boolean download
    +boolean fluid
    +string href
    +boolean ondark
    +boolean referrerpolicy
    +string rel
    +string target
    +string type
    +string variant
    +AuroLibraryRuntimeUtils runtimeUtils
    +ComponentBase()
    +void _initializeDefaults()
  }

  class AuroHyperlink {
    +string appearance
    +boolean download
    +boolean fluid
    +string href
    +boolean ondark
    +boolean referrerpolicy
    +string rel
    +string role
    +string safeUri
    +string target
    +string type
    +string variant
    +static void register(name)
  }

  class AuroButton {
  }

  class AuroHyperlinkButton {
    +static void register(name)
  }

  class AuroLibraryRuntimeUtils {
  }

  LitElement <|-- AuroElement
  AuroElement <|-- ComponentBase
  ComponentBase <|-- AuroHyperlink

  AuroButton <|-- AuroHyperlinkButton

  ComponentBase --> AuroLibraryRuntimeUtils
Loading

File-Level Changes

Change Details Files
Restructure and expand hyperlink API documentation and examples to clarify appearance, URL handling, external links, CTA variants, and common usage patterns.
  • Replaced the old API Examples and scattered sections with more structured sections such as Basic, Property & Attribute Examples (Appearance, HTTPS enforcement, relative URLs, URL schemes), External Links, Navigation Links, CTA buttons, and Common Usage Patterns.
  • Updated inverse/ondark example file references to new *-appearance-inverse and renamed various example HTML/code files for clarity and consistency (e.g., nav, relative-url, https-enforcement, URLscheme).
  • Added new sections for role="button" usage, unsupported URL types, and typography, each with corresponding AURO-GENERATED-CONTENT hooks for HTML and code examples.
  • Renamed and clarified the Theme Support section to Restyle Component with CSS Variables and simplified its description.
docs/partials/api.md
apiExamples/relative-url.html
apiExamples/relative-url_code.html
Simplify and focus the index docs page, delegating detailed guidance to description and use-cases partials and retaining only a basic example.
  • Removed inline styles and multiple complex examples (nav pattern, role=button, unsupported types, typography, custom registration) from index.md.
  • Introduced guidance comment to keep index content minimal and wired in description.md and new useCases.md partials.
  • Retained a single Basic example with code, using AURO-GENERATED-CONTENT hooks backed by apiExamples/basic.html.
docs/partials/index.md
Tighten ComponentBase and AuroElement APIs, JSDoc typings, and default initialization behavior.
  • Refactored ComponentBase constructor to delegate default property setup to a new _initializeDefaults method and moved touchstart listener setup into the constructor before property definitions.
  • Reordered and clarified property definitions with more accurate JSDoc comments and union-typed descriptions for appearance, type, and variant, and clarified semantics for download, fluid, referrerpolicy, and rel.
  • Updated AuroElement JSDoc for appearance and layout to use clearer @type and default annotations.
src/component-base.mjs
src/layoutElement/auroElement.js
Improve package distribution metadata, dependency versions, and type exports for consumers.
  • Bumped lit to ^3.3.2 and @aurodesignsystem/auro-cli to ^3.5.0; normalized devDependency ordering.
  • Updated the package exports for the root entry to supply module, types, and default paths, enabling better ESM and TS tooling support.
  • Refreshed package-lock.json accordingly (full lockfile regenerated).
package.json
package-lock.json
Enhance custom registration documentation and README copy for auro-hyperlink.
  • Replaced terse description in README and description partial with expanded text emphasizing multi-brand theming and accessibility improvements over native anchors.
  • Filled in customRegistration.md with a full JS example using AuroHyperlink.register('custom-hyperlink') plus explanatory text, and surfaced this content in README via AURO-GENERATED-CONTENT.
  • Clarified method docs for register on AuroHyperlink and AuroHyperlinkButton to describe the name parameter as the element name to register.
README.md
docs/partials/customRegistration.md
docs/partials/description.md
src/auro-hyperlink.js
src/auro-hyperlink-button.js
docs/api.md
Modernize demo and accessibility assets to use ESM-based CDN imports and refine a11y guidance content.
  • Switched demo HTML pages to load Auro components from jsDelivr using +esm ESM endpoints instead of dist/*__bundled.js UMD bundles.
  • Fixed the API demo JS initializer to call roleButtonExample() instead of recursively calling itself, and simplified index demo JS by removing the extra example call.
  • Adjusted a11y markdown to strengthen wording on external-link indication, add a concrete anti-pattern example for link text, collapse the Focus Order table, and clarify link color/contrast language.
demo/a11y.html
demo/api.html
demo/index.html
demo/api.js
demo/index.js
demo/a11y.md
Add a richer PR template with explicit release-candidate review and cross-browser/framework testing checklist.
  • Renamed the Checklist section to Review Checklist and embedded a collapsible RC Checklist section detailing browser, device, and scenario testing expectations.
  • Linked to the Browsers Support Guide, component dev demo, and framework playground, and added specific checklist items for major desktop and mobile browsers and framework demos.
.github/PULL_REQUEST_TEMPLATE.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@jordanjones243 jordanjones243 linked an issue Jan 14, 2026 that may be closed by this pull request

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 4 issues, and left some high level feedback:

  • In apiExamples/relative-url_code.html the resolved absolute URL uses https://www.auro.alaskaair.com/..., which looks inconsistent with the main docs domain (auro.alaskaair.com) and may lead to a broken example link—worth double‑checking the correct hostname.
  • The referrerpolicy API is documented as a boolean flag that always maps to strict-origin-when-cross-origin, but the name matches the native string attribute; consider calling out this semantic difference more explicitly (or renaming the property) to avoid confusion for consumers expecting the standard string-valued referrerpolicy.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `apiExamples/relative-url_code.html` the resolved absolute URL uses `https://www.auro.alaskaair.com/...`, which looks inconsistent with the main docs domain (`auro.alaskaair.com`) and may lead to a broken example link—worth double‑checking the correct hostname.
- The `referrerpolicy` API is documented as a boolean flag that always maps to `strict-origin-when-cross-origin`, but the name matches the native string attribute; consider calling out this semantic difference more explicitly (or renaming the property) to avoid confusion for consumers expecting the standard string-valued `referrerpolicy`.

## Individual Comments

### Comment 1
<location> `docs/partials/api.md:29` </location>
<code_context>
-  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/external.html) -->
-  <!-- AURO-GENERATED-CONTENT:END -->
-</div>
+Difference appearance options through the `appearance` attribute. This example shows the `inverse` appearance.

 <div class="exampleWrapper--ondark">
</code_context>

<issue_to_address>
**issue (typo):** Fix grammar in the appearance description sentence.

For example: “Different appearance options are available through the `appearance` attribute. This example shows the `inverse` appearance.”

Suggested implementation:

```
Different appearance options are available through the `appearance` attribute. This example shows the `inverse` appearance.

```

The replacement assumes the existing sentence appears exactly as `Difference appearance options through the \`appearance\` attribute. This example shows the \`inverse\` appearance.` elsewhere in `docs/partials/api.md`, likely just above the `.exampleWrapper--ondark` container. If there are similar sentences for other appearances (e.g., `primary`, `secondary`), you may want to apply the same grammatical structure to those as well.
</issue_to_address>

### Comment 2
<location> `docs/partials/api.md:65` </location>
<code_context>
+#### Relative URLs

-When using `auro-hyperlink` as a navigation style, use `type="nav"` for the alternate UI. With this type, links will appear without an underline, but present the underline feedback on hover.
+Absolute URLs are not always preferred. When using relative URLs `auro-hyperlink` will insert the `https://` protocol and hostname into the `<a>` element in the shadowDOM.

 <div class="exampleWrapper">
</code_context>

<issue_to_address>
**suggestion (typo):** Use the conventional "shadow DOM" phrasing instead of "shadowDOM".

Please update this to "shadow DOM" (and other occurrences, such as the note about `javascript` returning a shadow DOM as simple text) to align with common terminology.

Suggested implementation:

```
into the `<a>` element in the shadow DOM.

```

```
returns a shadow DOM as simple text

```

If there are any other occurrences of "shadowDOM" in `docs/partials/api.md` (or related docs), they should be similarly updated to "shadow DOM" for consistency.
</issue_to_address>

### Comment 3
<location> `docs/partials/api.md:80` </location>
<code_context>
-## Relative vs absolute URLs and https enforcement
-
-By default the `auro-hyperlink` will assume that the url passed is an absolute URL to `www.alaskaair.com` with the `https` protocol.
+#### Using telephone/text/mailto URLs Schemes

 <div class="exampleWrapper">
</code_context>

<issue_to_address>
**suggestion (typo):** Tidy the heading wording for URL schemes.

Please change the heading to something like "Using telephone, text, and mailto URL schemes" (singular "URL" and lowercase "schemes").

```suggestion
#### Using telephone, text, and mailto URL schemes
```
</issue_to_address>

### Comment 4
<location> `docs/partials/api.md:283` </location>
<code_context>
+
+**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.
+
+**Accessibility:** Review the code examples, the user of this element are responsible for keyboard support when using `role="button"`.
+
+<div class="exampleWrapper">
</code_context>

<issue_to_address>
**issue (typo):** Fix subject–verb agreement in the accessibility note.

Consider changing this to either “the user of this element is responsible” or “users of this element are responsible” to fix the agreement.

```suggestion
**Accessibility:** Review the code examples; users of this element are responsible for keyboard support when using `role="button"`.
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread docs/partials/api.md
Comment thread docs/partials/api.md
Comment thread docs/partials/api.md
@jordanjones243 jordanjones243 changed the title Rc/329 RC #329 Jan 14, 2026
@jordanjones243
jordanjones243 merged commit 4a750b9 into main Jan 14, 2026
19 of 20 checks passed
@jordanjones243
jordanjones243 deleted the rc/329 branch January 14, 2026 23:13
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 8.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Completed work has been released label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Completed work has been released semantic-status: perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RC 2026-01-14

2 participants