You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering an issue where Paparazzi golden snapshots generated through Showkase do not properly render in RTL (Right-to-Left) configurations. Despite configuring the device locale to RTL (e.g., locale = "ar") or setting LayoutDirection.RTL for the device in PaparazziShowkaseDeviceConfig, the snapshots are still rendered as LTR (Left-to-Right).
Note
The Compose Previews render correctly in RTL when using @Preview(locale = "ar").
The issue is isolated to Paparazzi-generated snapshots with Showkase.
The correct strings for the locale are used int he snapshot, but the UI alignment is still LTR
Steps to Reproduce
Configure a Showkase snapshot test using Paparazzi with an RTL locale.
Ensure the Compose UI includes elements that respect RTL, such as text alignment or position-sensitive elements like icons or buttons.
Run the snapshot test and compare the output.
Observe that the snapshots are rendered in LTR, ignoring the RTL locale and layout direction.
Observe that Compose Previews render correctly in RTL when using @Preview(locale = "ar").
Environment
Showkase Version: 1.0.3
Paparazzi Version: (matching dependencies)
Additional Context
It seems like Paparazzi may not be correctly applying LayoutDirection.RTL or locale configurations during snapshot generation. This issue could potentially originate in the interaction between Paparazzi and Showkase when generating golden snapshots for RTL locales.
The text was updated successfully, but these errors were encountered:
Overview
We are encountering an issue where Paparazzi golden snapshots generated through Showkase do not properly render in RTL (Right-to-Left) configurations. Despite configuring the device locale to RTL (e.g.,
locale = "ar"
) or settingLayoutDirection.RTL
for the device inPaparazziShowkaseDeviceConfig
, the snapshots are still rendered as LTR (Left-to-Right).Note
@Preview(locale = "ar")
.Steps to Reproduce
Configure a Showkase snapshot test using Paparazzi with an RTL locale.
-- OR --
Configure a Showkase snapshot test using Paparazzi with a Compose preview with an RTL locale
@Preview(locale = "ar")
.Environment
Additional Context
It seems like Paparazzi may not be correctly applying
LayoutDirection.RTL
or locale configurations during snapshot generation. This issue could potentially originate in the interaction between Paparazzi and Showkase when generating golden snapshots for RTL locales.The text was updated successfully, but these errors were encountered: