From 8450dd87b30ab9eb1fc6ff99e76fb4b02707b9ce Mon Sep 17 00:00:00 2001 From: ronronscelestes Date: Mon, 15 Nov 2021 16:39:36 +0100 Subject: [PATCH] typography integrated --- .../EmailTemplates/components/EmailTable.js | 14 ++-- .../pages/EmailTemplates/tests/index.test.js | 84 +++++++++---------- 2 files changed, 46 insertions(+), 52 deletions(-) diff --git a/packages/plugins/users-permissions/admin/src/pages/EmailTemplates/components/EmailTable.js b/packages/plugins/users-permissions/admin/src/pages/EmailTemplates/components/EmailTable.js index 24876a9e80..f81d369345 100644 --- a/packages/plugins/users-permissions/admin/src/pages/EmailTemplates/components/EmailTable.js +++ b/packages/plugins/users-permissions/admin/src/pages/EmailTemplates/components/EmailTable.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Table, Thead, Tbody, Tr, Td, Th } from '@strapi/design-system/Table'; import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden'; -import { Text, TableLabel } from '@strapi/design-system/Text'; +import { Typography } from '@strapi/design-system/Typography'; import { IconButton } from '@strapi/design-system/IconButton'; import Pencil from '@strapi/icons/Pencil'; import Reload from '@strapi/icons/Refresh'; @@ -27,12 +27,12 @@ const EmailTable = ({ canUpdate, onEditClick }) => { - + {formatMessage({ id: getTrad('Email.template.table.name.label'), defaultMessage: 'name', })} - + @@ -55,12 +55,12 @@ const EmailTable = ({ canUpdate, onEditClick }) => { /> - + {formatMessage({ id: getTrad('Email.template.reset_password'), defaultMessage: 'Reset password', })} - + { /> - + {formatMessage({ id: getTrad('Email.template.email_confirmation'), defaultMessage: 'Email address confirmation', })} - + ); -describe('ADMIN | Pages | Settings | Advanced Settings', () => { +describe('ADMIN | Pages | Settings | Email Templates', () => { beforeAll(() => server.listen()); beforeEach(() => { @@ -65,7 +65,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { }); expect(container.firstChild).toMatchInlineSnapshot(` - .c24 { + .c23 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -79,21 +79,21 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { outline: none; } - .c24 svg { + .c23 svg { height: 12px; width: 12px; } - .c24 svg > g, - .c24 svg path { + .c23 svg > g, + .c23 svg path { fill: #ffffff; } - .c24[aria-disabled='true'] { + .c23[aria-disabled='true'] { pointer-events: none; } - .c24:after { + .c23:after { -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: 0.2s; @@ -108,11 +108,11 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { border: 2px solid transparent; } - .c24:focus-visible { + .c23:focus-visible { outline: none; } - .c24:focus-visible:after { + .c23:focus-visible:after { border-radius: 8px; content: ''; position: absolute; @@ -123,7 +123,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { border: 2px solid #4945ff; } - .c25 { + .c24 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -141,26 +141,26 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { border: none; } - .c25 svg > g, - .c25 svg path { + .c24 svg > g, + .c24 svg path { fill: #8e8ea9; } - .c25:hover svg > g, - .c25:hover svg path { + .c24:hover svg > g, + .c24:hover svg path { fill: #666687; } - .c25:active svg > g, - .c25:active svg path { + .c24:active svg > g, + .c24:active svg path { fill: #a5a5ba; } - .c25[aria-disabled='true'] { + .c24[aria-disabled='true'] { background-color: #eaeaef; } - .c25[aria-disabled='true'] svg path { + .c24[aria-disabled='true'] svg path { fill: #666687; } @@ -217,7 +217,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { overflow-x: auto; } - .c22 tr:last-of-type { + .c21 tr:last-of-type { border-bottom: none; } @@ -274,6 +274,20 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { height: 0.25rem; } + .c20 { + color: #666687; + font-weight: 600; + font-size: 0.6875rem; + line-height: 1.45; + text-transform: uppercase; + } + + .c22 { + color: #32324d; + font-size: 0.875rem; + line-height: 1.43; + } + .c18 { border: 0; -webkit-clip: rect(0 0 0 0); @@ -348,26 +362,6 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { line-height: 1.5; } - .c20 { - color: #666687; - font-size: 0.875rem; - line-height: 1.43; - } - - .c23 { - font-weight: 400; - font-size: 0.875rem; - line-height: 1.43; - color: #32324d; - } - - .c21 { - font-weight: 600; - font-size: 0.6875rem; - line-height: 1.45; - text-transform: uppercase; - } -
{ class="c17" > name @@ -483,7 +477,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => { { tabindex="-1" > Reset password @@ -532,7 +526,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => {