feat: add animations to each <ChevronDown /> (#22068)

This pull-request implement animations for each of our `<ChevronDown />`
(and a few other chevrons) so that everything is uniform with
`<Autocomplete />`.
This commit is contained in:
Jake Howell
2026-02-20 12:55:02 +11:00
committed by GitHub
parent 00d6f15e7c
commit ccb5b83c19
34 changed files with 128 additions and 160 deletions
@@ -6,10 +6,10 @@ import type {
AgentScriptTiming,
ProvisionerTiming,
} from "api/typesGenerated";
import { ChevronDownIcon } from "components/AnimatedIcons/ChevronDown";
import { Button } from "components/Button/Button";
import sortBy from "lodash/sortBy";
import uniqBy from "lodash/uniqBy";
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
import { type FC, useState } from "react";
import {
calcDuration,
@@ -107,7 +107,7 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
css={styles.collapseTrigger}
onClick={() => setIsOpen((o) => !o)}
>
{isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}
<ChevronDownIcon open={isOpen} className="size-4 mr-4" />
<span>Build timeline</span>
<span
css={(theme) => ({