Skip to content
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

fix(ButtonDropdown): Sync Button props type #919

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crispipear
Copy link
Contributor

We noticed that the prop "minimal" is not recognized in Typescript on the ButtonDropdown, which trace down to the missing "minimal" string to the ButtonDropdown's sdsStyle.

Since sdsStyle and sdsType are used directly into , I think it would be more type-safe to have these corresponding props in ButtonDropdown to use the exact same type as Button.

Summary

Structural Element (Base, Gene, DNA, Chromosome or Cell) Base

Checklist

  • Default Story in Storybook
  • Test Story in Storybook
  • Tests written
  • Semantic Variables from defaultTheme.ts used wherever possible
  • If updating an existing component, depreciate flag has been used where necessary
  • ZeroHeight Documents updated
  • Chromatic build verified by @chanzuckerberg/sds-design

We noticed that the prop "minimal" is not recognized in Typescript on the ButtonDropdown, which trace down to the missing "minimal" string to the ButtonDropdown's `sdsStyle`.

Since `sdsStyle` and `sdsType` are used directly into <Button />, I think it would be more type-safe to have these corresponding props in ButtonDropdown to use the exact same type as Button.
@crispipear crispipear changed the title fix: Sync Button props type to ButtonDropdown fix(ButtonDropdown): Sync Button props type Dec 19, 2024
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.

1 participant