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(*): proper heading element in widgets [KHCP-11027] #1252

Merged
merged 19 commits into from
Mar 20, 2024

Conversation

portikM
Copy link
Member

@portikM portikM commented Mar 15, 2024

Summary

Addresses: https://konghq.atlassian.net/browse/KHCP-11027

Update title in widget-like components to come with appropriate heading element

Applied fixed can be found in PRs picking up new versions of published packages:

Resources

@portikM portikM self-assigned this Mar 15, 2024
@portikM portikM marked this pull request as ready for review March 18, 2024 18:40
@mihai-peteu mihai-peteu self-requested a review March 20, 2024 15:46
Copy link
Contributor

@mihai-peteu mihai-peteu left a comment

Choose a reason for hiding this comment

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

Provisionally approving this as far changes to analytics components go :)

@@ -183,6 +186,10 @@ const props = defineProps({
required: false,
default: () => 'lg',
},
titleTag: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain more about the use case behind making this a property? I'd expect we'd want all metric cards to have the same title tag...

Copy link
Member Author

Choose a reason for hiding this comment

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

That is the case most of the time, however if metrics card is seeded inside some other widget that already has an h2 heading - it should be h3 to not break the hierarchy - that's when this prop comes in handy. Regardless of what tag is used - styling for the title remains consistent though

@portikM portikM merged commit b66ce71 into main Mar 20, 2024
31 checks passed
@portikM portikM deleted the fix/khcp-11027-widget-heading-tag branch March 20, 2024 18:08
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.

4 participants