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]: Extra decorator <div> introduced to table header in V11.73.0 affected our table header layouts #18490

Open
2 tasks done
xiao-ibm opened this issue Jan 30, 2025 · 0 comments

Comments

@xiao-ibm
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.74.0

React version

No response

Description

We are using DataTable, we recently upgraded from "@carbon/react": "1.72.0" to "1.74.0" and see an extra invisible <div> in <th> which affected our table header layouts. It's
<div class="cds--table-header-label--decorator-inner">

This extra <div> pushed our header contents towards left where they used to be at end of right side.

Before:

Image

After:

Image

Reproduction/example

You can see the behavior on a sorting DataTable from the storybook https://react.carbondesignsystem.com/?path=/docs/components-datatable-sorting--overview

Steps to reproduce

Image

You can see the behavior on a sorting DataTable from the storybook.
Without the extra <div>, the sorting icon is placed at the end of the right side, with this extra <div>, the sorting arrow is pushed towards center.

Suggested Severity

None

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant