From fd36c6c79a4c7fa21e110243a3901c1d983e7461 Mon Sep 17 00:00:00 2001 From: Craig Cook Date: Mon, 8 Jan 2024 18:04:41 -0800 Subject: [PATCH] Center-align button text [fix #826] --- CHANGELOG.md | 1 + assets/sass/protocol/components/_button.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8678da53..1e0fe2b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ## Bug Fixes * **css:** Fix incorrect value for `text-body-lg` in Firefox theme. * **js:** Fix typo at `lang-switcher.js` comment +* **css:** Center-align button text (#826) ## Migration Tips * Rename instances of `mzp-c-call-out` to `mzp-c-callout` (note the removed dash). diff --git a/assets/sass/protocol/components/_button.scss b/assets/sass/protocol/components/_button.scss index dd6f1d65..702832a6 100644 --- a/assets/sass/protocol/components/_button.scss +++ b/assets/sass/protocol/components/_button.scss @@ -89,6 +89,7 @@ a.mzp-c-button { font-weight: bold; line-height: $body-line-height; padding: 6px $spacing-lg; + text-align: center; text-decoration: none !important; /* stylelint-disable-line declaration-no-important */ &::-moz-focus-inner {