Skip to content

Commit

Permalink
Merge pull request #36 from zanderwar/patch-2
Browse files Browse the repository at this point in the history
Removed unnecessary paragraph tags causing other buttons to become askew
  • Loading branch information
robbieaverill authored Oct 26, 2017
2 parents d6e5c2a + 270f82f commit 75e42b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/GridField/GridFieldClearAllButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getHTMLFragments($gridField)
->setForm($gridField->getForm());

return [
$this->targetFragment => '<p class="grid-clear-all-button">' . $button->Field() . '</p>'
$this->targetFragment => $button->Field()
];
}

Expand Down
1 change: 0 additions & 1 deletion tests/Forms/GridField/GridFieldClearAllButtonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function testGetHtmlFragments()
$this->assertContains('Clear all', $fragments['before']);
$this->assertContains('clear-all-logs', $fragments['before']);
$this->assertContains('font-icon-trash-bin action_clear', $fragments['before']);
$this->assertContains('<p class="grid-clear-all-button">', $fragments['before']);
}

/**
Expand Down

0 comments on commit 75e42b9

Please sign in to comment.