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

TreeTable: alignHeader takes no effect #7270

Closed
MBelniak opened this issue Sep 28, 2024 · 1 comment · Fixed by #7272
Closed

TreeTable: alignHeader takes no effect #7270

MBelniak opened this issue Sep 28, 2024 · 1 comment · Fixed by #7272
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@MBelniak
Copy link
Contributor

Describe the bug

alignHeader prop of columns is not doing anything to the header\s alignment. It's working in DataTable, though.

Reproducer

https://stackblitz.com/edit/vitejs-vite-q1tpes

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: ^10.8.1 => 10.8.2 
    react: ^18.3.1 => 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

No response

@MBelniak MBelniak added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 28, 2024
@MBelniak
Copy link
Contributor Author

MBelniak commented Sep 28, 2024

I found out DataTableBase includes a base, non-theme styling, which includes the alignment of a header. TreeTable doesn't have such styling, so the header is styled only when importing some theme.

MBelniak added a commit to MBelniak/primereact that referenced this issue Sep 28, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 28, 2024
@melloware melloware added this to the 10.8.4 milestone Sep 28, 2024
@melloware melloware linked a pull request Sep 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants