Skip to content

Feature/SSD-813-ta-tag#345

Open
FidDeveloper wants to merge 2 commits into
mainfrom
feature/SSD-813-ta-tag
Open

Feature/SSD-813-ta-tag#345
FidDeveloper wants to merge 2 commits into
mainfrom
feature/SSD-813-ta-tag

Conversation

@FidDeveloper
Copy link
Copy Markdown

@FidDeveloper FidDeveloper commented Feb 10, 2026

Summarise the feature

Issue ticket # SSD-813

Description:
TA Tag component
image

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

Affected endpoints

/?

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 10, 2026

⚠️ No Changeset found

Latest commit: 12d29e9

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 Feb 10, 2026

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

Project Deployment Actions Updated (UTC)
myds Ready Ready Preview, Comment Feb 10, 2026 6:58am
myds-storybook Ready Ready Preview, Comment Feb 10, 2026 6:58am

Request Review

@FidDeveloper FidDeveloper self-assigned this Feb 10, 2026
@FidDeveloper FidDeveloper marked this pull request as ready for review February 10, 2026 07:01
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

Adds a TA Tag component preview and documentation page for SSD-813.

Changes:

  • Added standalone Tag component CSS with size + variant styling.
  • Added an HTML preview page that supports theme toggling via postMessage.
  • Updated the Tag docs page to embed the preview via tabs.

Reviewed changes

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

File Description
apps/docs/public/assets/ta-preview/tag/tag.css Introduces Tag component styling (variants, sizes, dot/no-dot, dark mode).
apps/docs/public/assets/ta-preview/tag/ta-tag-preview.html Adds an iframe-friendly preview page for the Tag component.
apps/docs/content/docs/develop/(transistory-assistance)/ta-tag.mdx Adds preview/code tabs and embeds the new Tag preview in docs.

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

Comment on lines +41 to +47
window.addEventListener("message", (event) => {
if (event.origin !== window.origin) return;
if (event.data?.theme) {
document.documentElement.className = event.data.theme;
console.log("Theme applied inside iframe:", event.data.theme);
}
}, false);
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

window.origin is not a reliable/standard property across browsers; this will cause the origin check to fail and prevent theme messages from being applied. Use window.location.origin (or document.location.origin) for the comparison.

Copilot uses AI. Check for mistakes.
if (event.origin !== window.origin) return;
if (event.data?.theme) {
document.documentElement.className = event.data.theme;
console.log("Theme applied inside iframe:", event.data.theme);
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

Remove the console.log (or gate it behind a debug flag) to avoid noisy console output in production docs/previews.

Suggested change
console.log("Theme applied inside iframe:", event.data.theme);

Copilot uses AI. Check for mistakes.
/* border-color: rgba(var(--_gray-200) / 1); */
font-weight: 500;
white-space: nowrap;
transition: all 0.15s ease;
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

Avoid transition: all since it can cause unnecessary repaints/layout work when any property changes. Prefer transitioning only the property you actually animate (e.g., opacity 0.15s ease).

Suggested change
transition: all 0.15s ease;
transition: background-color 0.15s ease,
border-color 0.15s ease,
color 0.15s ease,
box-shadow 0.15s ease,
opacity 0.15s ease,
transform 0.15s ease;

Copilot uses AI. Check for mistakes.
font-weight: 500;
white-space: nowrap;
transition: all 0.15s ease;
white-space: nowrap;
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

Duplicate white-space: nowrap; declaration—remove one to reduce noise and make future diffs clearer.

Suggested change
white-space: nowrap;

Copilot uses AI. Check for mistakes.
@@ -2,5 +2,25 @@
title: Tag
description: Explore the integrated accessibility testing tools in our development environment that help identify and resolve accessibility issues during development. These tools work together to ensure our components meet WCAG standards and provide a better experience for all users.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

This page is now for the Tag component, but the frontmatter description still describes accessibility testing tools. Also, the Code/TagCSS tabs currently contain placeholders; replace them with real usage/CSS (or remove the tabs until content is ready) to avoid publishing misleading docs.

Copilot uses AI. Check for mistakes.
---
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
import IframeThemePreview from "@/components/iframe-theme-preview";

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

This page is now for the Tag component, but the frontmatter description still describes accessibility testing tools. Also, the Code/TagCSS tabs currently contain placeholders; replace them with real usage/CSS (or remove the tabs until content is ready) to avoid publishing misleading docs.

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