Bug 1403733 - Fix single button styling on Flash doorhanger r=Felipe

There's not a great selector that covers the case of either button
being hidden, so the best option seems to be an additional
attribute.

MozReview-Commit-ID: CMdjWQnPjGA

--HG--
extra : rebase_source : ad6dbd1d9a85cbd70375013687330eb13135caa7
This commit is contained in:
Doug Thayer 2017-10-10 12:24:15 -07:00
parent e307798bb3
commit 2500902e96
2 changed files with 7 additions and 1 deletions

View File

@ -2886,6 +2886,12 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
} else if (button2.default) {
this._secondaryButton.setAttribute("default", "true");
}
if (this._primaryButton.hidden) {
this._secondaryButton.setAttribute("alone", "true");
} else if (this._secondaryButton.hidden) {
this._primaryButton.setAttribute("alone", "true");
}
]]></body>
</method>
<method name="_setupDescription">

View File

@ -78,7 +78,7 @@
color: graytext;
}
.popup-notification-button[default] {
.popup-notification-button[default]:not([alone]) {
flex: 0 50%;
}