Skip to content

Commit

Permalink
fix(ui5-table-column): align content right in RTL (#2955)
Browse files Browse the repository at this point in the history
FIXES: #2945
  • Loading branch information
ilhan007 authored Mar 17, 2021
1 parent 8ef07fe commit c117fe3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/TableColumn.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
scope="col"
part="column"
role="columnheader"
dir="{{effectiveDir}}"
>
<slot></slot>
</th>
4 changes: 4 additions & 0 deletions packages/main/src/themes/TableColumn.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ th {
vertical-align: middle;
}

th[dir="rtl"] {
text-align: right;
}

:host([first]) th {
padding-left: 1rem;
}
Expand Down

0 comments on commit c117fe3

Please sign in to comment.