From 6b56f8ff896897aadabda16350dea8a4d0fadb6d Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 15 Oct 2024 15:14:18 +0200 Subject: [PATCH] chore: add descriptions to accordion headers (#8452) This commits adds descriptions to the accordion headers in the personal dashboard. ![image](https://github.com/user-attachments/assets/d7b7aeff-3a69-45f7-ab42-23228a49132b) --- .../personalDashboard/PersonalDashboard.tsx | 42 ++++++++++++++++--- .../project/ProjectList/ProjectList.tsx | 2 +- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/frontend/src/component/personalDashboard/PersonalDashboard.tsx b/frontend/src/component/personalDashboard/PersonalDashboard.tsx index 6ea91e74cf..21a1c998f3 100644 --- a/frontend/src/component/personalDashboard/PersonalDashboard.tsx +++ b/frontend/src/component/personalDashboard/PersonalDashboard.tsx @@ -79,6 +79,25 @@ const MainContent = styled('div')(({ theme }) => ({ gap: theme.spacing(2), })); +const AccordionSummaryText = styled('div')(({ theme }) => ({ + display: 'flex', + flexDirection: 'column', + gap: theme.spacing(0.5), +})); + +const AccordionSummaryHeader = styled('h3')(({ theme }) => ({ + color: theme.palette.text.primary, + fontSize: theme.typography.body1.fontSize, + fontWeight: theme.typography.body2.fontWeight, + margin: 0, +})); + +const AccordionSummarySubtitle = styled(Typography)(({ theme }) => ({ + color: theme.palette.text.secondary, + fontSize: theme.typography.body2.fontSize, + fontWeight: theme.typography.body2.fontWeight, +})); + export const PersonalDashboard = () => { const { user } = useAuthUser(); const { trackEvent } = usePlausibleTracker(); @@ -157,9 +176,15 @@ export const PersonalDashboard = () => { id='projects-panel-header' aria-controls='projects-panel-content' > - - My projects - + + + My projects + + + Favorite projects, projects you own, and projects + you are a member of + + { id='flags-panel-header' aria-controls='flags-panel-content' > - - My feature flags - + + + My feature flags + + + Feature flags you have created or favorited + + {