♿️(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:
committed by
Sebastien Nobour
parent
7e03d33be0
commit
e03ecb2d77
@@ -44,7 +44,7 @@ export const ItemList = () => {
|
|||||||
scrollContainer={containerRef.current}
|
scrollContainer={containerRef.current}
|
||||||
as="ul"
|
as="ul"
|
||||||
$margin={{ top: 'none' }}
|
$margin={{ top: 'none' }}
|
||||||
$padding={{ all: 'none' }}
|
$padding="none"
|
||||||
role="listbox"
|
role="listbox"
|
||||||
>
|
>
|
||||||
<ItemListState
|
<ItemListState
|
||||||
@@ -76,7 +76,7 @@ const ItemListState = ({
|
|||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<Box $align="center" $margin={{ all: 'large' }}>
|
<Box $align="center" $margin="large">
|
||||||
<Loader aria-label={t('mail domains list loading')} />
|
<Loader aria-label={t('mail domains list loading')} />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
@@ -84,13 +84,8 @@ const ItemListState = ({
|
|||||||
|
|
||||||
if (!mailDomains?.length) {
|
if (!mailDomains?.length) {
|
||||||
return (
|
return (
|
||||||
<Box $justify="center" $margin={{ all: 'small' }}>
|
<Box $justify="center" $margin="small">
|
||||||
<Text
|
<Text as="p" $margin={{ vertical: 'none' }}>
|
||||||
as="p"
|
|
||||||
$margin={{ vertical: 'none' }}
|
|
||||||
$theme="greyscale"
|
|
||||||
$variation="500"
|
|
||||||
>
|
|
||||||
{t(`0 mail domain to display.`)}
|
{t(`0 mail domain to display.`)}
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -40,15 +40,10 @@ const TeamListState = ({ isLoading, isError, teams }: PanelTeamsStateProps) => {
|
|||||||
if (!teams?.length) {
|
if (!teams?.length) {
|
||||||
return (
|
return (
|
||||||
<Box $justify="center" $margin="small">
|
<Box $justify="center" $margin="small">
|
||||||
<Text
|
<Text as="p" $margin={{ vertical: 'none' }}>
|
||||||
as="p"
|
|
||||||
$margin={{ vertical: 'none' }}
|
|
||||||
$theme="greyscale"
|
|
||||||
$variation="500"
|
|
||||||
>
|
|
||||||
{t('0 group to display.')}
|
{t('0 group to display.')}
|
||||||
</Text>
|
</Text>
|
||||||
<Text as="p" $theme="greyscale" $variation="500">
|
<Text as="p">
|
||||||
{t(
|
{t(
|
||||||
'Create your first team by clicking on the "Create a new team" button.',
|
'Create your first team by clicking on the "Create a new team" button.',
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user