Skip to content

Feature/doc url demo site#62

Merged
firestar300 merged 4 commits into
developfrom
feature/doc-url-demo-site
Jul 21, 2026
Merged

Feature/doc url demo site#62
firestar300 merged 4 commits into
developfrom
feature/doc-url-demo-site

Conversation

@firestar300

@firestar300 firestar300 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Resolve #55


Note

Low Risk
Demo-site and styling changes plus a small Link init fix; the toggle selector change reduces an accidental layout bug from new markup.

Overview
Adds GitHub and per-component Documentation links across the demo site (index.html and all example pages), each pointing to the repo or the matching examples/*/README.md on GitHub. Pages now load a favicon, wire Link.init('a.github-button') so new-tab links get accessible treatment, and share new .github-button styles in the sidebar and main content.

Link now treats the init target as a link when it is itself a[target="_blank"], processes every matching anchor in a loop (continue instead of return when icons are off), so sidebar and doc buttons work when initialized directly.

Toggle demo CSS scopes hidden panels to [id^="toggle-"][aria-hidden="true"] so decorative GitHub SVGs with aria-hidden="true" no longer match the old global rule.

Reviewed by Cursor Bugbot for commit 8dcc6bd. Bugbot is set up for automated code reviews on this repo. Configure here.

Introduces new "GitHub" and "Documentation" buttons to all example pages and the main index.

The "GitHub" button in the sidebar navigates to the main project repository.
The "Documentation" button in the main content area of each example links directly to the respective component's `README.md` file.

This change enhances discoverability of the project's source code and detailed component documentation, making it easier for users to explore and understand the implementation.
…lector

Applies consistent default and interactive styles to the sidebar GitHub button for improved visual feedback. Ensures SVG icons within buttons are correctly aligned.

Refines the `aria-hidden` selector to be more specific to toggle components, preventing unintended hiding of other elements.

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 72cc7ee. Configure here.

Comment thread index.html
Activates the `Link` component on all `a.github-button` elements across the main index and example pages. This ensures external link indicators and accessibility enhancements are applied.

Includes internal fixes and refinements to the `Link` class's `init` method:
- The component now correctly processes its root element if it matches `a[target="_blank"]`.
- The icon rendering loop logic is improved to ensure all applicable links are processed correctly.
@firestar300
firestar300 merged commit e1fc7e9 into develop Jul 21, 2026
2 checks passed
@firestar300
firestar300 deleted the feature/doc-url-demo-site branch July 21, 2026 14:01
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.

Feedback site de démo

1 participant