Skip to content

make labelledBy prop optional for Main component and remove redundant type #1392

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

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

hekystyle
Copy link
Contributor

What does it do?

  1. makes labelledBy optional because there is default value assignment inside component. I used | undefined by design so it's compatible with https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes.
  2. removed string type because it's already part of React.ReactNode type

Why is it needed?

Better developer experience.

How to test it?

Related issue(s)/PR(s)

@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2023

🦋 Changeset detected

Latest commit: bcf0056

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Patch
@strapi/ui-primitives Patch
@strapi/icons Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 1:09pm
design-system-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 1:09pm

@hekystyle hekystyle changed the title make prop optional and remove redundant type make labelledBy prop optional for Main component and remove redundant type Oct 10, 2023
@joshuaellis joshuaellis self-assigned this Oct 10, 2023
@joshuaellis joshuaellis self-requested a review October 10, 2023 16:00
@joshuaellis joshuaellis added pr: fix This PR is fixing a bug source: design-system relates to design-system package labels Oct 10, 2023
Copy link
Contributor

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

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

thanks for the contribution! ⭐

@joshuaellis joshuaellis merged commit 98364c0 into strapi:main Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants