Skip to content

Commit

Permalink
♿️(frontend) change panel text color
Browse files Browse the repository at this point in the history
- change text color displayed when panel of teams or mail domains is empty
to create more contrast between text and background colors
  • Loading branch information
daproclaima committed Jul 31, 2024
1 parent 3d38eca commit f1d46b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ItemList = () => {
scrollContainer={containerRef.current}
as="ul"
$margin={{ top: 'none' }}
$padding={{ all: 'none' }}
$padding="none"
role="listbox"
>
<ItemListState
Expand Down Expand Up @@ -76,21 +76,16 @@ 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>
);
}

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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
)}
Expand Down

0 comments on commit f1d46b9

Please sign in to comment.