-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
packages/analytics/analytics-chart/src/components/TopNTable.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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: { |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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
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