Skip to content

New documentation website#3217

Draft
jpzwarte wants to merge 73 commits into
mainfrom
docs/website-v2
Draft

New documentation website#3217
jpzwarte wants to merge 73 commits into
mainfrom
docs/website-v2

Conversation

@jpzwarte
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 21, 2026 06:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 194 out of 199 changed files in this pull request and generated 1 comment.

</dd>
</dl>

<p class="summary">{{ component.summary }}</p>
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

component.summary is rendered without | safe, but the manifest processing converts backticks to <code> tags (and summaries may already contain HTML). This will likely be escaped by Nunjucks and render the tags as text. Consider rendering it as {{ component.summary | safe }} (and optionally only output the <p> when a summary exists).

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings April 21, 2026 09:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 201 out of 206 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings April 21, 2026 11:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 279 out of 284 changed files in this pull request and generated 2 comments.

Comment on lines +5 to +7
const { OpenIssueCount: OpenIssueCountClass } = await import(
'@sl-design-system/doc-components/open-issue-count/open-issue-count'
);
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

The dynamic import path does not match the package exports map in docs/components/package.json, which only exports subpaths ending in .js (e.g. ./open-issue-count/open-issue-count.js). Importing @sl-design-system/doc-components/open-issue-count/open-issue-count will fail under Node/package-exports resolution; update the import to include the .js suffix.

Copilot uses AI. Check for mistakes.
Comment on lines 10 to 14
"repository": {
"type": "git",
"url": "https://github.com/sl-design-system/components.git",
"url": "https://github.com/sl-design-system/components",
"directory": "packages/components/tooltip"
},
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

The repository.directory points to packages/components/tooltip, but this package is time-field. This metadata ends up incorrect in the generated docs/links. Update it to packages/components/time-field.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings June 1, 2026 10:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🕸 Preview deploys

Copy link
Copy Markdown
Contributor

@a11ymiko a11ymiko left a comment

Choose a reason for hiding this comment

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

Link with GitHub logo that takes user to our components repo does not have accessible name:

<a href="https://github.com/sl-design-system/components" target="_blank" rel="noopener noreferrer">
          <sl-icon name="fab-github" aria-hidden="true"></sl-icon>
</a>
Image

Fix recommendation:

aria-label='GitHub repository' or aria-label='SL Design system on GitHub' should be added to <a> so it would be announced with proper a11y name by screen reader

Copy link
Copy Markdown
Contributor

@a11ymiko a11ymiko left a comment

Choose a reason for hiding this comment

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

Switch used to change mode between light and dark currently have name that may be misunderstood by users. Screen reader announce this component as "Switch between light and dark mode, ON/OFF, switch". For some users information "ON/OFF" may be understood as 'switch is active or switch is dimmed' more than 'light mode/dark mode is selected'.

Image

Fix recommendation:

Changing a11y name of that switch to 'Light mode' would result in this component being announced as 'Light mode, ON/OFF, switch' that is more clear about what mode is currently selected and as shorter name of component it will also take less time for user to get to know this component.


override render(): TemplateResult {
return html`
<nav aria-label="Site navigation" role="tree">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better idea to remove role='tree' from <nav> element as:

  1. it's more usable for assistive technologies users when it's role is 'navigation' than 'tree'. there are landmark shortcuts for navigation.
  2. role 'navigation' better explains the purpose of that element than role tree
  3. role tree has additional requirements when it comes to it's children that are currently not met but are not required for role navigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants