mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
chore: add descriptions to accordion headers (#8452)
This commits adds descriptions to the accordion headers in the personal dashboard. 
This commit is contained in:
parent
abef5deaef
commit
6b56f8ff89
@ -79,6 +79,25 @@ const MainContent = styled('div')(({ theme }) => ({
|
|||||||
gap: theme.spacing(2),
|
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 = () => {
|
export const PersonalDashboard = () => {
|
||||||
const { user } = useAuthUser();
|
const { user } = useAuthUser();
|
||||||
const { trackEvent } = usePlausibleTracker();
|
const { trackEvent } = usePlausibleTracker();
|
||||||
@ -157,9 +176,15 @@ export const PersonalDashboard = () => {
|
|||||||
id='projects-panel-header'
|
id='projects-panel-header'
|
||||||
aria-controls='projects-panel-content'
|
aria-controls='projects-panel-content'
|
||||||
>
|
>
|
||||||
<Typography variant='body1' component='h3'>
|
<AccordionSummaryText>
|
||||||
My projects
|
<AccordionSummaryHeader>
|
||||||
</Typography>
|
My projects
|
||||||
|
</AccordionSummaryHeader>
|
||||||
|
<AccordionSummarySubtitle>
|
||||||
|
Favorite projects, projects you own, and projects
|
||||||
|
you are a member of
|
||||||
|
</AccordionSummarySubtitle>
|
||||||
|
</AccordionSummaryText>
|
||||||
</StyledAccordionSummary>
|
</StyledAccordionSummary>
|
||||||
<StyledAccordionDetails>
|
<StyledAccordionDetails>
|
||||||
<MyProjects
|
<MyProjects
|
||||||
@ -187,9 +212,14 @@ export const PersonalDashboard = () => {
|
|||||||
id='flags-panel-header'
|
id='flags-panel-header'
|
||||||
aria-controls='flags-panel-content'
|
aria-controls='flags-panel-content'
|
||||||
>
|
>
|
||||||
<Typography variant='body1' component='h3'>
|
<AccordionSummaryText>
|
||||||
My feature flags
|
<AccordionSummaryHeader>
|
||||||
</Typography>
|
My feature flags
|
||||||
|
</AccordionSummaryHeader>
|
||||||
|
<AccordionSummarySubtitle>
|
||||||
|
Feature flags you have created or favorited
|
||||||
|
</AccordionSummarySubtitle>
|
||||||
|
</AccordionSummaryText>
|
||||||
</StyledAccordionSummary>
|
</StyledAccordionSummary>
|
||||||
<StyledAccordionDetails>
|
<StyledAccordionDetails>
|
||||||
<MyFlags
|
<MyFlags
|
||||||
|
@ -112,7 +112,7 @@ export const ProjectList = () => {
|
|||||||
<SearchHighlightProvider value={state.query || ''}>
|
<SearchHighlightProvider value={state.query || ''}>
|
||||||
<ProjectGroup
|
<ProjectGroup
|
||||||
sectionTitle='My projects'
|
sectionTitle='My projects'
|
||||||
sectionSubtitle='Favorite projects, projects you own or projects you are a member of.'
|
sectionSubtitle='Favorite projects, projects you own, and projects you are a member of'
|
||||||
HeaderActions={
|
HeaderActions={
|
||||||
<ProjectsListSort
|
<ProjectsListSort
|
||||||
sortBy={state.sortBy}
|
sortBy={state.sortBy}
|
||||||
|
Loading…
Reference in New Issue
Block a user