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

[FIX] Fixes issue with empty th appearing when no data in table. (#1428) #1436

Merged

Conversation

cdterry87
Copy link
Contributor

@cdterry87 cdterry87 commented Feb 29, 2024

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

This pull request fixes the issue in which an empty <th> appears when there is no data present in a table. In the components/table/th-empty.blade.php file, the container element was a <th> tag with a <tr> inside it. A <th> tag is used for table cells rather than table rows. Therefore, the container element should be the <tr> tag, and instead of a <td> tag for the table cell, we can use <th>.

Related Issue(s): #1428 .

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

@luanfreitasdev
Copy link
Collaborator

Thank you for this contribution!

@luanfreitasdev luanfreitasdev merged commit 997fa6b into Power-Components:5.x Feb 29, 2024
15 checks passed
@cdterry87 cdterry87 deleted the fix/empty-th-on-empty-row branch March 1, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants