feat: New <k-stats-field> component
#7389
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The new
<k-stats-field>component is basically rebuilding what happened in the<k-stats-section>but without the API props loading. We can plug it in as soon as the backend code for the field is also there (coming in the next PR)Changelog
✨ Enhancements
<k-stats-field>component<k-label>component now also acceptsfalsefor the input prop. This will switch the label element to an h2 and also remove the<abbr>for the invalid state. All fields that don't store any values will need this. We can also use it for the info field, which did still create its own headline.🐛 Bug fixes
h2that easily bleed into component rules.For review team