Skip to content

Commit

Permalink
feat(Text): rtl support (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug authored and amje committed Feb 6, 2024
1 parent 345ce4d commit a82ad0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Alert/__snapshots__/Alert.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports[`Alert has predicted styles if inline layout rendered 1`] = `
>
<span
class="yc-text yc-text_variant_subheader-2 yc-alert__title"
dir="auto"
>
Where will you go, hero?
</span>
Expand Down
1 change: 1 addition & 0 deletions src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const Text = React.forwardRef(

return (
<Tag
dir="auto"
ref={ref}
className={text(
{variant, ellipsis, whiteSpace, wordBreak},
Expand Down

0 comments on commit a82ad0a

Please sign in to comment.