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

[Bug]: TableContainer doesn't render description unless title is specified #18134

Open
2 tasks done
adamalston opened this issue Nov 20, 2024 · 0 comments
Open
2 tasks done

Comments

@adamalston
Copy link
Contributor

Package

@carbon/react

Browser

No response

Package version

1.67.1

React version

No response

Description

TableContainer doesn't render description unless title is specified. Here is the code where the title and description are rendered:

{title && (
<div className={`${prefix}--data-table-header`}>
<h4 className={`${prefix}--data-table-header__title`} id={titleId}>
{title}
</h4>
<p
className={`${prefix}--data-table-header__description`}
id={descriptionId}>
{description}
</p>
</div>
)}

The following code prevents the description from being rendered unless title is truthy:

Reproduction/example

https://stackblitz.com/edit/github-5zg2fu?file=src%2FApp.tsx

Steps to reproduce

  1. Load the reproduction and see that 'second description' isn't shown anywhere.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

DataPower

Code of Conduct

@adamalston adamalston changed the title [Bug]: TableContainer doesn't render description unless title is specified [Bug]: TableContainer doesn't render description unless title is specified Nov 20, 2024
@alina-jacob alina-jacob added severity: 3 https://ibm.biz/carbon-severity component: data-table package: @carbon/react @carbon/react labels Nov 26, 2024
@alina-jacob alina-jacob moved this to ⏱ Backlog in Design System Nov 26, 2024
@alina-jacob alina-jacob removed the status in Design System Nov 26, 2024
@sstrubberg sstrubberg moved this to 🕵️‍♀️ Triage in Design System Dec 10, 2024
@alisonjoseph alisonjoseph moved this from 🕵️‍♀️ Triage to ⏱ Backlog in Design System Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

No branches or pull requests

3 participants