Skip to content

Commit

Permalink
fix(tile): center align slot's text when alignment is equal to center (
Browse files Browse the repository at this point in the history
…#9773)

**Related Issue:**
[#9540](#9540)

## Summary
updates the `tile` component to center align the slot's text when the
alignment prop is equal to "center"
  • Loading branch information
aPreciado88 authored Jul 15, 2024
1 parent 8daa408 commit 4a26398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/calcite-components/src/components/tile/tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
.icon {
align-self: center;
}
.text-content-container {
justify-content: center;
}
.text-content {
text-align: center;
}
Expand Down

0 comments on commit 4a26398

Please sign in to comment.