-
Notifications
You must be signed in to change notification settings - Fork 4
refactor(OneChip): promote from experimental to stable #3846
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: refactor/storybook-sidebar-reorganization-2
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 |
|---|---|---|
| @@ -1,9 +1,6 @@ | ||
| import { withDataTestId } from "@/lib/data-testid" | ||
| import { experimentalComponent } from "@/lib/experimental" | ||
| export * from "./types" | ||
|
|
||
| import { F0BigNumber as F0BigNumberCmp } from "./F0BigNumber" | ||
|
|
||
| export const F0BigNumber = withDataTestId( | ||
| experimentalComponent<typeof F0BigNumberCmp>("F0BigNumber", F0BigNumberCmp) | ||
| ) | ||
| export const F0BigNumber = withDataTestId(F0BigNumberCmp) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ const meta = { | |
| parameters: { | ||
| layout: "centered", | ||
| }, | ||
| tags: ["autodocs", "experimental"], | ||
| tags: ["autodocs", "stable"], | ||
|
||
| argTypes: { | ||
| label: { | ||
| description: "The label of the chip", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,6 @@ import { cva, type VariantProps } from "cva" | |||||||
| import { F0Avatar, type AvatarVariant } from "@/components/avatars/F0Avatar" | ||||||||
| import { F0Icon, type IconType } from "@/components/F0Icon" | ||||||||
| import { CrossedCircle } from "@/icons/app" | ||||||||
| import { experimentalComponent } from "@/lib/experimental" | ||||||||
| import { cn, focusRing } from "@/lib/utils" | ||||||||
|
|
||||||||
| export const chipVariants = cva({ | ||||||||
|
|
@@ -122,7 +121,4 @@ const _Chip = ({ | |||||||
| ) | ||||||||
| } | ||||||||
|
|
||||||||
|
||||||||
| _Chip.displayName = "Chip" |
Copilot
AI
Apr 2, 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.
Now that Chip is being promoted to stable, please ensure its clickable container meets button semantics for assistive tech. The implementation uses a clickable <div>; it should include an appropriate role (e.g. role="button") and relevant ARIA (and ideally use a <button> for the main interactive element) so it is announced and behaves correctly for screen readers.
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.
The PR title/description focuses on promoting
OneChiponly, but this PR also changesF0BigNumber(removesexperimentalComponent) and updates Storybook tags forF0Heading/F0BigNumber. Please update the PR description (and/or title) to reflect the additional components being promoted to stable, so reviewers and release notes don’t miss these API/status changes.