refactor: change expand-collapse arrows in outline (#973)

Set arrow down for expanded section/subsection and right arrow for
collapsed items same as legacy
This commit is contained in:
Navin Karkera
2024-05-03 18:36:51 +05:30
committed by GitHub
parent 6d9a8a1eac
commit a63c808300

View File

@@ -8,7 +8,7 @@ import {
} from '@openedx/paragon';
import {
ArrowDropDown as ArrowDownIcon,
ArrowDropUp as ArrowUpIcon,
ArrowRight as ArrowRightIcon,
} from '@openedx/paragon/icons';
import messages from './messages';
@@ -33,7 +33,7 @@ const TitleButton = ({
)}
>
<Button
iconBefore={isExpanded ? ArrowUpIcon : ArrowDownIcon}
iconBefore={isExpanded ? ArrowDownIcon : ArrowRightIcon}
variant="tertiary"
data-testid={`${namePrefix}-card-header__expanded-btn`}
className="item-card-header__title-btn"