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

Update some component types to accept relevant html attributes #450

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

Conversation

brookewp
Copy link
Contributor

Description

When using the following components, type errors will arise when trying to add relevant html attributes:

  • Code (e.g. id, name)
  • Form (e.g. action, method, onSubmit)
  • Notice (e.g. role, tabIndex)

This PR updates the types for these three components to resolve those errors.

Steps to Test

  1. Pull down PR.
  2. Edit component usages (e.g. via a story) to see that relevant attributes aren't showing type errors (e.g. id can be added to components noted above).
  3. Can also verify that unexpected attributes still show type error (e.g. href shouldn't be an option for any of the affected components noted above).

Signed-off-by: brookewp <brooke.kaminski@automattic.com>
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for vip-design-system-components ready!

Name Link
🔨 Latest commit 14c86e9
🔍 Latest deploy log https://app.netlify.com/sites/vip-design-system-components/deploys/670ffccea4986c0008b3014e
😎 Deploy Preview https://deploy-preview-450--vip-design-system-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brookewp brookewp requested a review from a team October 16, 2024 19:07
@brookewp brookewp added duplicate This issue or pull request already exists [Status] Needs Review and removed duplicate This issue or pull request already exists labels Oct 18, 2024
Copy link
Contributor

@kat3samsin kat3samsin 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 updating!

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