Bug 1874505 - ensure text is vertically centered in infobar buttons r=desktop-theme-reviewers,dao

To reproduce the issue with the specific message bar:

1. quit/restart your local build of Firefox to ensure you have some session data
2. set the `browser.startup.couldRestoreSession.count` pref to 1
3. run this snippet in the browser toolbox:

```js
Cc["@mozilla.org/browser/browserglue;1"].getService(Ci.nsISupports).wrappedJSObject._maybeShowRestoreSessionInfoBar();
```

As @dholbert mentioned in the bug this is a band-aid fix. Seems alright though given the `.footer-button` class is just a hack to provide in-content button styles in the chrome. Long term we want to remove it in favour of unified button styles and/or the `moz-button` component (see Bug 1858814).

Differential Revision: https://phabricator.services.mozilla.com/D198589
This commit is contained in:
Hanna Jones 2024-01-15 18:19:26 +00:00
parent 97cdacf51c
commit 72892846f3

View File

@ -234,8 +234,8 @@ button.text-link .button-text {
&.small-button {
margin: 0;
min-height: var(--size-item-medium);
padding: .6em 1em;
font-size: var(--font-size-small);
align-items: center;
}
&[disabled] {