-
Notifications
You must be signed in to change notification settings - Fork 81
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
KCardGrid: Part 1 - Prepare KCard + few bugfixes and a visual spacing update #774
Conversation
This unblocks several issues related to the current internal architecture - primarily gives us more flexibility needed to achieve simple public API for card, card grid, and card checkboxes.
to better reflect its purpose.
rather than outer <li>. This prepares ground for elements that need to be rendered within <li> but outside the card area, such as checkboxes.
Previously, heading styles needed to be dynamic so they could be passed down to BaseCard. BaseCard is removed now so we can use much simpler approach that also allows for removal of the two copies of same styles in JavaScript and CSS parts.
- remove duplicate information - improve generated documentation display - improve clarity - re-order props to related groups - try to be conscise
Prepares ground for card grid work that will be responsible for controlling card dimensions.
`relative` is already applied via `card-area` class.
in the horizontal layout with small thumbnail. Fixes the thumbnail overflowing and aligns this layout more closely to the designs.
Hi @MisRob thanks for the wonderful work here. I am leaving few questions or comments here. |
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.
Hi @AllanOXDi, ah yes that's right. Thank you. All these issues are addressed in the PR that comes after this one. All of them are the temporary regressions I meant in the "Steps to test" - I will be more specific next time. This is caused by removing the height control from |
68898d0
to
c869df4
Compare
rendered within the card via its slots.
c869df4
to
172152a
Compare
I am adding
|
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.
This looks good to me! I think the merge of BaseCard and KCard has had a good and cleaner result. Just left 2 super minor things in docs wording now that you already did some changes there 😅. Thank you!
No worries @AlexVelezLl, I welcome that. Will look into it :) Thank you. |
Note that I worked from @AllanOXDi's #752 branch which hasn't been merged yet so the diff is visible in this PR. Please ignore @AllanOXDi's commits here. I will rebase as soon as #752 is merged.
Description
This is a first part of work that was proposed and discussed in #748.
KCard
andBaseCard
to unblock several issues for the upcoming features regarding the addition of checkboxes andKCardGrid
KCard
structure and style for the aforementioned featuresSee commit messages for details.
References
Closes #773
Changelog
Description: Merges
KCard
andBaseCard
Products impact: none
Addresses: Unblocks several issues for the upcoming features regarding the addition of checkboxes and
KCardGrid
Components:
KCard
Breaking: no
Impacts a11y: -
Guidance: -
Description: Updates
KCard
internal structure and styleProducts impact: This introduces temporary regressions in
KCard
related to removing its control of its height that will instead be controlled byKCardGrid
. However,KCard
is required to be always used withinKCardGrid
anyways so ultimately this will be of no real impact. Will be completed byKCardGrid
soon.Addresses: Prepares
KCard
for the upcoming features regarding the addition of checkboxes andKCardGrid
Components:
KCard
Breaking: no
Impacts a11y: -
Guidance: -
Description: Fixes the thumbnail overflowing in the horizontal layout with small thumbnail and aligns this layout more closely to the designs.
Products impact: bugfix
Addresses: Make the KCard thumbnail handle large Card width #773
Components:
KCard
Breaking: no
Impacts a11y: -
Guidance: -
Description: Fix click.stop not working on interactive elements rendered within the card via its slots.
Products impact: bugfix
Addresses: -
Components:
KCard
Breaking: no
Impacts a11y: -
Guidance: -
Description: Aligns padding to the designs
Products impact: Visual update
Addresses: -
Components:
KCard
Breaking: no
Impacts a11y: -
Guidance: -
Steps to test
As this move was already discussed and agreed on, in this PR we would want to focus on catching any unexpected major regressions, particularly in the markup structure or layout. See the playground page.
Note that this introduces temporary regressions in
KCard
related to removing its control of its height (elements overflowing the card area, cards not having consistent height) that will instead be controlled byKCardGrid
. This is deliberate step that will be completed byKCardGrid
soon. It shouldn't cause any issues sinceKCard
shouldn't be used withoutKCardGrid
and consumers are instructed to link to [BETA] Card grid and checkboxes #748 before all that work is transitioned todevelop
.Testing checklist
If there are any front-end changes, before/after screenshots are includedCritical and brittle code paths are covered by unit testsReviewer guidance