Skip to content

fix(Dropdown): variant support for textOnly shape - #250

Closed
atakanbayrak wants to merge 3 commits into
mainfrom
fix/dropdown_text_only_variant_support
Closed

atakanbayrak wants to merge 3 commits into
mainfrom
fix/dropdown_text_only_variant_support

Conversation

@atakanbayrak

Copy link
Copy Markdown
Contributor

Description

Variant support for textOnly shape is added.

  • Secondary variant is not added because default textOnly color and background already solves this situation.

Type of Change

  • 🆕 New Component
  • ✨ Feature / Enhancement
  • 🐛 Bug Fix
  • 💥 Breaking Change
  • 📦 Build / Dependency / Docs Update
  • 🧹 Code Refactoring

Screenshots / Preview

image

Checklist

  • Self-reviewed, no leftover logs or debug code
  • Uses design tokens — no hardcoded style values
  • Accessible (keyboard nav, ARIA, contrast)
  • Tests added/updated and passing
  • Storybook story added/updated

How to Test

page.tsx

@claude

claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @atakanbayrak's task in 18s —— View job


Review of PR #250

  • Read the diff and the review rules (general, tests, css)

Summary: The PR is mostly in good shape. The earlier comments on the test and on specificity are addressed: the :not(:disabled) selector is gone, and the assertDefaults comment now says "(solid only)".

One remaining issue

  • Dropdown.module.scss:127 (css.md §5/§4): the &:disabled { color: ... } inside the variant loop repeats the same value in every iteration. It also duplicates the existing &.textOnly:disabled rule at line 92. Replace it with a single disabled rule placed after the loop.

Nits / checks

  • .Root is untouched, so css.md §0 is fine.
  • Dropdown.stories.tsx:9 still shows variant default as primary. Consider noting "primary (solid only)" there, since textOnly now has no default variant.
  • The Figma and design-token rules don't apply, because the component still uses only --theme-* tokens.

I did not run tests or lint, since CI does that.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Size Change: +472 B (+0.17%)

Total Size: 281 kB

📦 View Changed
Filename Size Change
dist/index.cjs 140 kB +234 B (+0.17%)
dist/index.es.js 139 kB +238 B (+0.17%)
ℹ️ View Unchanged
Filename Size
dist/chunks/useToggle-1pe2WRaw.js 800 B
dist/chunks/useToggle-B6kbi656.cjs 769 B
dist/hooks.cjs 225 B
dist/hooks.es.js 219 B

compressed-size-action

@aktasmehmet aktasmehmet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR merged with #256 . It should stay open until256 is merged. Then this PR should be discarded.

This branch is waiting to be deployed

1 waiting deployment
development — fadca9b1 Waiting Nov 26, 2026 by atakanbayrak via Chromatic #540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants