️(frontend) change panel text color

- change text color displayed when panel of teams or mail domains is empty
to create more contrast between text and background colors
This commit is contained in:
daproclaima
2024-07-18 17:23:17 +02:00
committed by Sebastien Nobour
parent 7e03d33be0
commit e03ecb2d77
2 changed files with 6 additions and 16 deletions

View File

@@ -44,7 +44,7 @@ export const ItemList = () => {
scrollContainer={containerRef.current}
as="ul"
$margin={{ top: 'none' }}
$padding={{ all: 'none' }}
$padding="none"
role="listbox"
>
<ItemListState
@@ -76,7 +76,7 @@ const ItemListState = ({
if (isLoading) {
return (
<Box $align="center" $margin={{ all: 'large' }}>
<Box $align="center" $margin="large">
<Loader aria-label={t('mail domains list loading')} />
</Box>
);
@@ -84,13 +84,8 @@ const ItemListState = ({
if (!mailDomains?.length) {
return (
<Box $justify="center" $margin={{ all: 'small' }}>
<Text
as="p"
$margin={{ vertical: 'none' }}
$theme="greyscale"
$variation="500"
>
<Box $justify="center" $margin="small">
<Text as="p" $margin={{ vertical: 'none' }}>
{t(`0 mail domain to display.`)}
</Text>
</Box>

View File

@@ -40,15 +40,10 @@ const TeamListState = ({ isLoading, isError, teams }: PanelTeamsStateProps) => {
if (!teams?.length) {
return (
<Box $justify="center" $margin="small">
<Text
as="p"
$margin={{ vertical: 'none' }}
$theme="greyscale"
$variation="500"
>
<Text as="p" $margin={{ vertical: 'none' }}>
{t('0 group to display.')}
</Text>
<Text as="p" $theme="greyscale" $variation="500">
<Text as="p">
{t(
'Create your first team by clicking on the "Create a new team" button.',
)}