From 6154e4bac46a22e000af1ec72c4afb3d088c4b0a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 4 Dec 2022 19:40:09 -0600 Subject: [PATCH] Rotate arrows for RTL --- app/soapbox/components/birthday-input.tsx | 8 ++++---- app/soapbox/components/list.tsx | 2 +- app/soapbox/components/ui/card/card.tsx | 2 +- app/soapbox/components/ui/modal/modal.tsx | 2 +- app/soapbox/components/ui/widget/widget.tsx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/soapbox/components/birthday-input.tsx b/app/soapbox/components/birthday-input.tsx index 9da717e0d..b8e4d11ad 100644 --- a/app/soapbox/components/birthday-input.tsx +++ b/app/soapbox/components/birthday-input.tsx @@ -70,7 +70,7 @@ const BirthdayInput: React.FC = ({ value, onChange, required })
= ({ value, onChange, required }) /> {intl.formatDate(date, { month: 'long' })} = ({ value, onChange, required })
= ({ value, onChange, required }) /> {intl.formatDate(date, { year: 'numeric' })} = ({ label, hint, children, onClick }) => { {children} - + ) : renderChildren()} diff --git a/app/soapbox/components/ui/card/card.tsx b/app/soapbox/components/ui/card/card.tsx index fd01e5a94..110bc79fe 100644 --- a/app/soapbox/components/ui/card/card.tsx +++ b/app/soapbox/components/ui/card/card.tsx @@ -64,7 +64,7 @@ const CardHeader: React.FC = ({ className, children, backHref, onBa return ( - + {intl.formatMessage(messages.back)} ); diff --git a/app/soapbox/components/ui/modal/modal.tsx b/app/soapbox/components/ui/modal/modal.tsx index 741309195..9284c82e2 100644 --- a/app/soapbox/components/ui/modal/modal.tsx +++ b/app/soapbox/components/ui/modal/modal.tsx @@ -100,7 +100,7 @@ const Modal: React.FC = ({ src={closeIcon} title={intl.formatMessage(messages.close)} onClick={onClose} - className='text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-200' + className='text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-200 rtl:rotate-180' /> )}
diff --git a/app/soapbox/components/ui/widget/widget.tsx b/app/soapbox/components/ui/widget/widget.tsx index 16cc33234..ec855c5f8 100644 --- a/app/soapbox/components/ui/widget/widget.tsx +++ b/app/soapbox/components/ui/widget/widget.tsx @@ -44,7 +44,7 @@ const Widget: React.FC = ({ {action || (onActionClick && (