Skip to content

Commit

Permalink
fix: (core) card RTL mode (#3461)
Browse files Browse the repository at this point in the history
* fix card rtl mode

* minor
  • Loading branch information
dimamarksman committed Sep 30, 2020
1 parent f97bb9f commit 10f6eff
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions libs/core/src/lib/card/card.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,28 @@
border-top: 0.0625rem solid #ccc;
border-top: 0.0625rem solid var(--sapTile_SeparatorColor, #ccc);
}

.fd-card {
/* Should be removed once https://github.com/SAP/fundamental-styles/issues/1715 is resolved */
.fd-card__avatar {
margin-right: 0.75rem;

@at-root {
[dir='rtl'] & {
margin-right: 0;
margin-left: 0.75rem;
}
}
}

/* Should be removed once https://github.com/SAP/fundamental-styles/issues/1729 is resolved */
.fd-card__analytics-content,
.fd-numeric-content__kpi {
@at-root {
[dir='rtl'] & {
direction: ltr;
text-align: right;
}
}
}
}

0 comments on commit 10f6eff

Please sign in to comment.