mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
fix(rtl): resolve RTL issues in Challenges component (#7942)
This commit is contained in:
committed by
GitHub
parent
9ced8851e6
commit
04feec4582
@@ -19,6 +19,7 @@ export const IconArrowSmall = memo<
|
||||
const classes = cn(className, {
|
||||
'rotate-180': displayDirection === 'left',
|
||||
'rotate-180 rtl:rotate-0': displayDirection === 'start',
|
||||
'rtl:rotate-180': displayDirection === 'end',
|
||||
'rotate-90': displayDirection === 'down',
|
||||
});
|
||||
return (
|
||||
|
||||
@@ -108,7 +108,7 @@ export function Navigation({
|
||||
onClick={handleScrollLeft}
|
||||
aria-label="Scroll left"
|
||||
className={cn(
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-l border-gray-20 border-r rtl:rotate-180',
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-l rtl:rounded-r rtl:rounded-l-none border-gray-20 border-r rtl:border-l rtl:border-r-0',
|
||||
{
|
||||
'text-primary dark:text-primary-dark': canScrollLeft,
|
||||
'text-gray-30': !canScrollLeft,
|
||||
@@ -120,7 +120,7 @@ export function Navigation({
|
||||
onClick={handleScrollRight}
|
||||
aria-label="Scroll right"
|
||||
className={cn(
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-e rtl:rotate-180',
|
||||
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-e',
|
||||
{
|
||||
'text-primary dark:text-primary-dark': canScrollRight,
|
||||
'text-gray-30': !canScrollRight,
|
||||
|
||||
Reference in New Issue
Block a user