Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #34184
Closed
Open
Issue created Jun 04, 2021 by Administrator@rootContributor

Buttons do not show up properly in a table without a tbody

Created by: jsgoupil

When using Angular, somehow, the tbody does not show up in the resulting HTML. So this following code:

<body>
  <div class="container">
    <table class="table">
      <tr>
        <td><button class="btn btn-danger">Delete</button>
        </td>
      </tr>
    </table>
  </div>
</body>

will show a button with an incorrect background. To force the tbody to be removed, I wrote some JavaScript in the code pen.

https://codepen.io/jsgoupil/pen/oNZqKvX

image

This worked fine on version 4.6.0

Version:

  • Bootstrap: 5.0.1
  • Browser: 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.37
Assignee
Assign to
Time tracking