diff --git a/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessAction.tsx b/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessAction.tsx index b8f1f053..5921586b 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessAction.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessAction.tsx @@ -2,7 +2,7 @@ import { Button } from '@openfun/cunningham-react'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { Box, DropButton, IconOptions, Text } from '@/components'; +import { Box, DropButton, IconOptions } from '@/components'; import { MailDomain, Role } from '../../domains/types'; import { Access } from '../types'; @@ -60,7 +60,7 @@ export const AccessAction = ({ } > - {t('Update role')} + {t('Update role')} )} {mailDomain.abilities.delete && ( @@ -77,7 +77,7 @@ export const AccessAction = ({ } > - {t('Remove from domain')} + {t('Remove from domain')} )} diff --git a/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessesGrid.tsx b/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessesGrid.tsx index d2b2014b..7b6a4e54 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessesGrid.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/access-management/components/AccessesGrid.tsx @@ -105,11 +105,11 @@ export const AccessesGrid = ({ }, [data?.count, pageSize, setPagesCount]); return ( - + - {error && } + aria-label={t('Accesses list card')} + > + {error && } - - - - ); + + + + ); + }, }, - }, - { - headerName: t('Names'), - field: 'user.name', - }, - { - field: 'user.email', - headerName: t('Emails'), - }, - { - field: 'localizedRole', - headerName: t('Roles'), - }, - { - id: 'column-actions', - renderCell: ({ row }) => ( - - ), - }, - ]} - rows={accesses} - isLoading={isLoading} - pagination={pagination} - onSortModelChange={setSortModel} - sortModel={sortModel} - /> - + { + headerName: t('Names'), + field: 'user.name', + }, + { + field: 'user.email', + headerName: t('Emails'), + }, + { + field: 'localizedRole', + headerName: t('Roles'), + }, + { + id: 'column-actions', + renderCell: ({ row }) => ( + + ), + }, + ]} + rows={accesses} + isLoading={isLoading} + pagination={pagination} + onSortModelChange={setSortModel} + sortModel={sortModel} + /> + + ); }; diff --git a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/ItemList.tsx b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/ItemList.tsx index 43447185..b994648b 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/ItemList.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/ItemList.tsx @@ -44,7 +44,6 @@ export const ItemList = () => { void fetchNextPage(); }} scrollContainer={containerRef.current} - as="ul" $margin={{ top: 'none' }} $padding="none" role="listbox" diff --git a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/Panel.tsx b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/Panel.tsx index 2ce61f6e..8302c8fb 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/Panel.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/Panel.tsx @@ -49,7 +49,7 @@ export const Panel = () => { ? t(`Close the mail domains panel`) : t(`Open the mail domains panel`) } - $color={colorsTokens()['primary-600']} + $color={colorsTokens()['primary-500']} $css={` position: absolute; right: -1.2rem; diff --git a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/PanelActions.tsx b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/PanelActions.tsx index 2edb32eb..6882b390 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/PanelActions.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/domains/components/panel/PanelActions.tsx @@ -40,7 +40,7 @@ export const PanelActions = () => { onClick={changeOrdering} $radius="100%" $background={isSortAsc ? colorsTokens()['primary-200'] : 'transparent'} - $color={colorsTokens()['primary-600']} + $color={colorsTokens()['primary-500']} >