Skip to content

Commit

Permalink
RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshakmaz committed Feb 25, 2021
1 parent 77de552 commit ce9482d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/gestalt/src/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export default function TableCell(props: Props): Node {
className={cs}
colSpan={colSpan}
rowSpan={rowSpan}
style={{ left: shouldBeSticky ? previousTotalWidth : undefined }}
style={{
left: shouldBeSticky ? previousTotalWidth : undefined,
right: shouldBeSticky ? previousTotalWidth : undefined,
}}
>
{children}
</td>
Expand Down
5 changes: 4 additions & 1 deletion packages/gestalt/src/TableHeaderCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default function TableHeaderCell(props: Props): Node {
scope={scope || 'col'}
colSpan={colSpan}
rowSpan={rowSpan}
style={{ left: shouldBeSticky ? previousTotalWidth : undefined }}
style={{
left: shouldBeSticky ? previousTotalWidth : undefined,
right: shouldBeSticky ? previousTotalWidth : undefined,
}}
>
{children}
</th>
Expand Down

0 comments on commit ce9482d

Please sign in to comment.