Skip to content

Commit

Permalink
Merge pull request #2679 from IDEMSInternational/style/kw-button-text…
Browse files Browse the repository at this point in the history
…-alignment

fix: make button text alignment responsive to language direction
  • Loading branch information
esmeetewinkel authored Jan 3, 2025
2 parents f2de75f + 85c9626 commit 1185e79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ ion-button[data-variant~="card"] {
padding: 1rem 0 0.5rem;
text-align: center;
&.right {
text-align: right;
text-align: end;
}
&.left {
text-align: left;
text-align: start;
}
&.center {
text-align: center;
Expand Down Expand Up @@ -173,14 +173,14 @@ ion-button[data-variant~="card"] {

.left ::ng-deep {
margin: 0 auto 0 2px;
text-align: left;
text-align: start;
p {
margin: 0 0 0 2px;
}
}
.right {
margin: 0 2px 0 auto;
text-align: right;
text-align: end;
}
.center {
text-align: center;
Expand Down
4 changes: 2 additions & 2 deletions src/theme/deployment/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ p {
font-size: var(--font-size-text-large);
}
.right {
text-align: right;
text-align: end;
}
.left {
text-align: left;
text-align: start;
}
.center {
text-align: center;
Expand Down
6 changes: 3 additions & 3 deletions src/theme/themes/plh_kids_kw/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ body[data-theme="plh_kids_kw"] {
text-align: unset !important;
}
.left.text {
text-align: left;
text-align: start;
p {
text-align: left !important;
text-align: start !important;
}
}
// Center align all button text by default
Expand All @@ -45,7 +45,7 @@ body[data-theme="plh_kids_kw"] {
}
.left.right ::ng-deep {
p {
text-align: right !important;
text-align: end !important;
}
}
//Alignment Buttons
Expand Down

0 comments on commit 1185e79

Please sign in to comment.