From 4a263988b72faca473e993aebe0c7f61b12a6d19 Mon Sep 17 00:00:00 2001 From: Abraham Preciado Morales Date: Mon, 15 Jul 2024 10:56:55 -0700 Subject: [PATCH] fix(tile): center align slot's text when alignment is equal to center (#9773) **Related Issue:** [#9540](https://github.com/Esri/calcite-design-system/issues/9540) ## Summary updates the `tile` component to center align the slot's text when the alignment prop is equal to "center" --- packages/calcite-components/src/components/tile/tile.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/calcite-components/src/components/tile/tile.scss b/packages/calcite-components/src/components/tile/tile.scss index bf2b88d339a..7e8f4896243 100644 --- a/packages/calcite-components/src/components/tile/tile.scss +++ b/packages/calcite-components/src/components/tile/tile.scss @@ -103,6 +103,9 @@ .icon { align-self: center; } + .text-content-container { + justify-content: center; + } .text-content { text-align: center; }