-
-
Notifications
You must be signed in to change notification settings - Fork 171
Extra <div>
in card
title
#848
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
Comments
Actually, I tested a bit more and the actions slot cannot be easily tweaked either (it seems CSS classes are ignored). |
I think this is a hard one to reconcile, because these divs exist to ensure that the If you find a better solution, please feel free to send a PR. If you think it’s not worth it, as a workaround you can skip the “title” attribute and just use the card body, where you can place your own title content. Or just hack the CSS.
|
@robsontenorio, don't be so quick to close the issue. I had missed the purpose of that for the Regarding |
In the past some component had not ability to allow class through slots. Maybe Card component miss this ability. Are you able to provide a PR with an working solution, that does not break the current behavior ? |
I am trying to put 2
div
s side by side in a card title and see some extra<div>
are inserted for the title tag.That behavior is different when compared to the figure slot and I could not figure out a benefit for this difference.
Here is an example to compare the figure and the title slots:
The
mark-the-figure
andmark-the-title
classes do nothing other than help track where each item is rendered in the DOM.This results in only the figure between correctly applied the
!justify-between
class (or to be more precise, this is what it looks like; the actual explanation is written below):The reason can be found in the generated DOM:
As a result, there is no way to make the title take all the available width (hence the reason why it looks like
!justify-between
has no effect).Had the generated HTML been like below (without the 2 commented
<div>
), the title would have spanned across the whole card width:Would it be possible you simplify the DOM so that the title behaves like the figure?
The text was updated successfully, but these errors were encountered: