Skip to content

shiny.express.ui.card doesn't render card items properly #948

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

Closed
cpsievert opened this issue Dec 28, 2023 · 1 comment · Fixed by #992
Closed

shiny.express.ui.card doesn't render card items properly #948

cpsievert opened this issue Dec 28, 2023 · 1 comment · Fixed by #992
Labels
Milestone

Comments

@cpsievert
Copy link
Collaborator

For example:

from shiny.express import ui

with ui.card():
    ui.card_header("Header")
    "Body"
Screenshot 2023-12-28 at 3 22 47 PM

Both the header and the body are being wrapped in a .card-body, which is leading to the extra, unwanted, padding.

cpsievert added a commit that referenced this issue Jan 9, 2024
@cpsievert cpsievert mentioned this issue Jan 9, 2024
55 tasks
@wch
Copy link
Collaborator

wch commented Jan 9, 2024

For reference, this is what it's supposed to look like (with the DOM structure below):

image

And this is what it looks like on main:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants