diff --git a/src/view/phui/PHUIButtonView.php b/src/view/phui/PHUIButtonView.php index c4ee7a190c..ee6975357c 100644 --- a/src/view/phui/PHUIButtonView.php +++ b/src/view/phui/PHUIButtonView.php @@ -64,6 +64,10 @@ final class PHUIButtonView extends AphrontTagView { return $this; } + public function getColor() { + return $this->color; + } + public function setDisabled($disabled) { $this->disabled = $disabled; return $this; diff --git a/src/view/phui/PHUIHeaderView.php b/src/view/phui/PHUIHeaderView.php index 0ae2c558d6..0cd8379b42 100644 --- a/src/view/phui/PHUIHeaderView.php +++ b/src/view/phui/PHUIHeaderView.php @@ -267,7 +267,9 @@ final class PHUIHeaderView extends AphrontTagView { if ($this->actionLinks) { $actions = array(); foreach ($this->actionLinks as $button) { - $button->setColor(PHUIButtonView::GREY); + if (!$button->getColor()) { + $button->setColor(PHUIButtonView::GREY); + } $button->addClass(PHUI::MARGIN_SMALL_LEFT); $button->addClass('phui-header-action-link'); $actions[] = $button;