Skip to content

SSD-815- added toggle components develop#340

Open
ammarhairiHD wants to merge 2 commits into
mainfrom
feature/SSD-815-TA-Toggle
Open

SSD-815- added toggle components develop#340
ammarhairiHD wants to merge 2 commits into
mainfrom
feature/SSD-815-TA-Toggle

Conversation

@ammarhairiHD
Copy link
Copy Markdown

@ammarhairiHD ammarhairiHD commented Jan 29, 2026

Summarise the feature

Issue ticket #340

image

Description:

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@ammarhairiHD ammarhairiHD self-assigned this Jan 29, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 29, 2026

⚠️ No Changeset found

Latest commit: ab09c64

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
myds Ready Ready Preview, Comment Jan 29, 2026 7:30am
myds-storybook Ready Ready Preview, Comment Jan 29, 2026 7:30am

Request Review

Copy link
Copy Markdown

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

This PR introduces a new HTML/CSS toggle component to the design system documentation, providing developers with a lightweight, accessible switch implementation as a starting point before transitioning to React.

Changes:

  • Added toggle component implementation with three size variants (small, medium, large)
  • Created comprehensive documentation with usage examples, anatomy, and accessibility guidelines
  • Implemented dark mode support for the toggle component

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
apps/docs/public/assets/ta-preview/toggle/toggle.css Core toggle component styles including size variants and state management
apps/docs/public/assets/ta-preview/toggle/toggle-dark.css Dark mode color overrides for toggle component
apps/docs/public/assets/ta-preview/toggle/ta-toggle-preview.html HTML preview page demonstrating all three toggle sizes
apps/docs/content/docs/develop/(transistory-assistance)/ta-toggle.mdx Complete documentation for the toggle component with examples and API reference
apps/docs/content/docs/develop/(transistory-assistance)/ta-button.mdx Removed extra blank line
apps/docs/components/iframe-theme-preview.tsx Reformatted code for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for CSS code block. The content is CSS, not TSX. Change to ```css for proper syntax highlighting.

Copilot uses AI. Check for mistakes.


## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for CSS code block. The content is CSS, not TSX. Change to ```css for proper syntax highlighting.

Copilot uses AI. Check for mistakes.


## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for CSS code block. The content is CSS, not TSX. Change to ```css for proper syntax highlighting.

Copilot uses AI. Check for mistakes.


## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for HTML code block. The content is HTML, not TSX. Change to ```html for proper syntax highlighting.

Copilot uses AI. Check for mistakes.


## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for HTML code block. The content is HTML, not TSX. Change to ```html for proper syntax highlighting.

Copilot uses AI. Check for mistakes.


## 5. Anatomy
| Selector | Purpose |
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

Incorrect language identifier for HTML code block. The content is HTML, not TSX. Change to ```html for proper syntax highlighting.

Copilot uses AI. Check for mistakes.
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.

2 participants