Skip to content

fix(menu): ensure role type is compatible with Stencil's HTMLAttributes interface #6993

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

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented May 23, 2023

Related Issue: #7000

Summary

This fixes a TS error caused by role prop type not matching Stencil's HTMLAttributes.

Went with the globalAttributes approach because making role optional would fix the error in a strict-compilation context, but would cause the prerender build to fail with the same error.

Worth noting that this also adds support for specifying default globalAttributes for initial rendering.

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label May 23, 2023
@jcfranco jcfranco marked this pull request as ready for review May 23, 2023 23:26
@jcfranco jcfranco requested a review from a team as a code owner May 23, 2023 23:26
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label May 24, 2023
Copy link
Contributor

@anveshmekala anveshmekala left a comment

Choose a reason for hiding this comment

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

👍

@jcfranco jcfranco merged commit 0231983 into master May 24, 2023
@jcfranco jcfranco deleted the jcfranco/make-internal-role-prop-optional-to-match-html-type branch May 24, 2023 16:35
@github-actions github-actions bot added this to the 1.4.1 May patch - Bugs only milestone May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants