mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 17:26:11 +00:00
Merge pull request #15523 from strapi/fix/styling-with-dl-dt-dd
[Information]: styling with semantics
This commit is contained in:
commit
e176245be1
@ -10,11 +10,11 @@ import { getFullName } from '../../../../utils';
|
||||
|
||||
const KeyValuePair = ({ label, value }) => {
|
||||
return (
|
||||
<Flex justifyContent="space-between" as="p">
|
||||
<Typography fontWeight="bold" textColor="neutral600">
|
||||
<Flex justifyContent="space-between">
|
||||
<Typography as="dt" fontWeight="bold" textColor="neutral600">
|
||||
{label}
|
||||
</Typography>
|
||||
<Typography>{value}</Typography>
|
||||
<Typography as="dd">{value}</Typography>
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
@ -62,7 +62,7 @@ const Information = () => {
|
||||
</Box>
|
||||
|
||||
<Stack spacing={4}>
|
||||
<Stack spacing={2}>
|
||||
<Stack spacing={2} as="dl">
|
||||
<KeyValuePair
|
||||
label={formatMessage({
|
||||
id: getTrad('containers.Edit.information.created'),
|
||||
@ -80,7 +80,7 @@ const Information = () => {
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
<Stack spacing={2}>
|
||||
<Stack spacing={2} as="dl">
|
||||
<KeyValuePair
|
||||
label={formatMessage({
|
||||
id: getTrad('containers.Edit.information.lastUpdate'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user