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

Card: Change the management of the inside border-radius #37018

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Aug 24, 2022

Fixes #37010.

Couldn't spot any breaking change in the example page, but I haven't dig deeper.

Solution

Make the inner border-radius management universal inside the .card.
Leads to remove some unused classes like .card-img-top and .card-img-bottom.
May lighten the bundle size.

@mdo
Copy link
Member

mdo commented Oct 30, 2022

This removes two classes with the top and bottom variants. We'd need to deprecate those instead of remove outright—think you could tackle that?

@louismaximepiton
Copy link
Member Author

Hi mdo,

Not sure to completely understand what it is up to here. Should I mention it in the migration guide ? Should I use some deprecate comments ? Should I update the doc to tell that we don't use use those classes anymore ? It would be very helpful if you could light me up on this !

Thanks in advance !

@mdo
Copy link
Member

mdo commented Nov 16, 2022

@louismaximepiton Sorry for the delay! We need to keep the original CSS around unmodified until v6. So let's add those .card-img-top and .card-img-bottom classes back in addition to the new one. Then we can add a deprecate note to the docs (I can handle this) and mention it in the migration guide (I can handle this too).

@louismaximepiton
Copy link
Member Author

No problem, I was busy on my side aswell. I tried something on the scss file, I'm not quite sure of the last commit on two parts:

  • scss file: Reintroduced the classes but their behavior too, so people shouldn't notice the changes on normal use cases. I also added a deprecation warning message for those classes. Should I remove the behavior for .card-img-top and .card-img-bottom?
  • docs file: Introduced a deprecation message here too based on the .navbar-light one.

May I let you the hand on the migration file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

Setting a background on card-body covers the rounded corners on the bottom
3 participants