From d61baec248a451f40e670858a4c403320ed4a55e Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Tue, 7 Jan 2020 14:40:31 -0600 Subject: [PATCH 1/2] match button text alignment to card prop --- src/components/card/_card.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/card/_card.scss b/src/components/card/_card.scss index d2a89c7cfcd..bd5ab8b0c82 100644 --- a/src/components/card/_card.scss +++ b/src/components/card/_card.scss @@ -79,6 +79,10 @@ &.euiCard--leftAligned { text-align: left; align-items: flex-start; + + .euiCard__titleButton { + text-align: left; + } } &.euiCard--centerAligned { @@ -89,6 +93,10 @@ &.euiCard--rightAligned { text-align: right; align-items: flex-end; + + .euiCard__titleButton { + text-align: right; + } } &.euiCard--isSelectable { From c34fd3cf8f708921fc29051266d87687e78e7ad7 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Tue, 7 Jan 2020 14:50:42 -0600 Subject: [PATCH 2/2] add CHANGEOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7ef2195ad8..48e97e27e63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Fixed bug in `EuiCard` where button text was not properly aligned ([#2741](https://github.com/elastic/eui/pull/2741)) - Converted `EuiRange` to TypeScript ([#2732](https://github.com/elastic/eui/pull/2732)) - Converted `EuiDualRange` to TypeScript ([#2732](https://github.com/elastic/eui/pull/2732)) - Converted `EuiRangeInput` to TypeScript ([#2732](https://github.com/elastic/eui/pull/2732))