PBGUX/pb-design-system

pbds-checkbox misaligned in table row

jrnorrisjr opened this issue · 5 comments

The attached screenshot shows the issue where the checkbox is not aligned with the text in the table row. The actual code:
<td class="text-center" style="padding-left: 0px; padding-right: 0px;"> <pbds-checkbox disabled="(job.deleted == true) || (job.mailed == true)" ng-model="job.deleteFlag" ng-change="psJobsCtrl.deleteJobChanged(job)"></pbds-checkbox> </td>
Screenshot:
pbds-checkbox alignment

Bootstrap adds 10px margin above and below an element with class="checkbox"

For now, see https://plnkr.co/edit/a9swQdW1fghvCuYNf8DG?p=preview

I added a class on the td and added a class to the css:

.checkbox-cell .checkbox {
  margin: 0;
}

We will look at a better solution in the next release.

Follow what's in the plunker. It works fine there.