-
Notifications
You must be signed in to change notification settings - Fork 27
Feature/SSD-813-ta-tag #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
| --- | ||
| import { Tab, Tabs } from "fumadocs-ui/components/tabs"; | ||
| import IframeThemePreview from "@/components/iframe-theme-preview"; | ||
|
|
||
|
||
| ## Work In Progress | ||
| <Tabs items={["Preview","Code","TagCSS"]} defaultValue="Preview"> | ||
| <Tab value="Preview"> | ||
| <IframeThemePreview | ||
| src="/assets/ta-preview/tag/ta-tag-preview.html" | ||
| /> | ||
| </Tab> | ||
| <Tab value="Code"> | ||
| ```tsx | ||
| /* Tag Component Implementation */ | ||
| ``` | ||
| </Tab> | ||
| <Tab value="TagCSS"> | ||
| ```css | ||
| /* Tag Component Styles */ | ||
| ``` | ||
| </Tab> | ||
| </Tabs> | ||
|
|
||
| ## Overview | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,121 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en" class="dark"> | ||||
|
|
||||
| <head> | ||||
| <meta charset="UTF-8"> | ||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
| <title>Tag Component Examples</title> | ||||
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" /> | ||||
| <link rel="stylesheet" href="../css-reset.css" /> | ||||
| <link rel="stylesheet" href="tag.css" /> | ||||
| <style> | ||||
| body { | ||||
| font-family: Inter, ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; | ||||
| /* font-family: "Inter", sans-serif; */ | ||||
| padding: 2rem; | ||||
| max-width: 800px; | ||||
| margin: 0 auto; | ||||
| } | ||||
|
|
||||
| .section { | ||||
| margin-bottom: 3rem; | ||||
| } | ||||
|
|
||||
| .section h2 { | ||||
| margin-bottom: 1rem; | ||||
| font-size: 1.25rem; | ||||
| font-weight: 600; | ||||
| } | ||||
| .dark .section h2 { | ||||
| color: var(--Text-txt-black-500, #A1A1AA); | ||||
| } | ||||
|
|
||||
| .tag-group { | ||||
| display: flex; | ||||
| flex-wrap: wrap; | ||||
| gap: 0.75rem; | ||||
| align-items: center; | ||||
| } | ||||
| </style> | ||||
| <script> | ||||
| 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); | ||||
|
||||
| console.log("Theme applied inside iframe:", event.data.theme); |
Copilot
AI
Feb 10, 2026
There was a problem hiding this comment.
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.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,233 @@ | ||||||||||||||||
| /* Select Component Styles */ | ||||||||||||||||
| .dark body { | ||||||||||||||||
| height: 100%; | ||||||||||||||||
| background-color: #161619; | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| /* Tag Component Styles */ | ||||||||||||||||
|
|
||||||||||||||||
| /* Base Tag */ | ||||||||||||||||
| .tag { | ||||||||||||||||
| display: inline-flex; | ||||||||||||||||
| align-items: center; | ||||||||||||||||
| gap: 5px; | ||||||||||||||||
| /* border-radius: 9999px; */ | ||||||||||||||||
| /* border-radius: 8px; */ | ||||||||||||||||
| border-width: 1px; | ||||||||||||||||
| box-sizing: border-box; | ||||||||||||||||
| border-style: solid; | ||||||||||||||||
| /* border-color: rgba(var(--_gray-200) / 1); */ | ||||||||||||||||
| font-weight: 500; | ||||||||||||||||
| white-space: nowrap; | ||||||||||||||||
| transition: all 0.15s ease; | ||||||||||||||||
|
||||||||||||||||
| 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
AI
Feb 10, 2026
There was a problem hiding this comment.
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.
| white-space: nowrap; |
There was a problem hiding this comment.
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.