Skip to content

Commit

Permalink
refactor: change expand-collapse arrows in outline
Browse files Browse the repository at this point in the history
Set arrow down for expanded section/subsection and right arrow for
collapsed items same as legacy
  • Loading branch information
navinkarkera committed May 2, 2024
1 parent 65f45f7 commit 3dbfbb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/course-outline/card-header/TitleButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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"
Expand Down

0 comments on commit 3dbfbb4

Please sign in to comment.