mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 02:07:51 +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 }) => {
|
const KeyValuePair = ({ label, value }) => {
|
||||||
return (
|
return (
|
||||||
<Flex justifyContent="space-between" as="p">
|
<Flex justifyContent="space-between">
|
||||||
<Typography fontWeight="bold" textColor="neutral600">
|
<Typography as="dt" fontWeight="bold" textColor="neutral600">
|
||||||
{label}
|
{label}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>{value}</Typography>
|
<Typography as="dd">{value}</Typography>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -62,7 +62,7 @@ const Information = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Stack spacing={4}>
|
<Stack spacing={4}>
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2} as="dl">
|
||||||
<KeyValuePair
|
<KeyValuePair
|
||||||
label={formatMessage({
|
label={formatMessage({
|
||||||
id: getTrad('containers.Edit.information.created'),
|
id: getTrad('containers.Edit.information.created'),
|
||||||
@ -80,7 +80,7 @@ const Information = () => {
|
|||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Stack spacing={2}>
|
<Stack spacing={2} as="dl">
|
||||||
<KeyValuePair
|
<KeyValuePair
|
||||||
label={formatMessage({
|
label={formatMessage({
|
||||||
id: getTrad('containers.Edit.information.lastUpdate'),
|
id: getTrad('containers.Edit.information.lastUpdate'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user