diff --git a/.storybook/preview.less b/.storybook/preview.less index 2213059a..4ffa873e 100644 --- a/.storybook/preview.less +++ b/.storybook/preview.less @@ -34,7 +34,7 @@ } body { - @font-14-400(); + @body-compact-01(); } #storybook-root { diff --git a/packages/pelagos/__tests__/components/__snapshots__/EditorDetailsPanel-test.js.snap b/packages/pelagos/__tests__/components/__snapshots__/EditorDetailsPanel-test.js.snap index 6a357ca0..430fd3be 100644 --- a/packages/pelagos/__tests__/components/__snapshots__/EditorDetailsPanel-test.js.snap +++ b/packages/pelagos/__tests__/components/__snapshots__/EditorDetailsPanel-test.js.snap @@ -6,27 +6,31 @@ exports[`EditorDetailsPanel rendering renders expected elements when showButtons className="EditorDetailsPanel" id="test" > - -

- Test -

+

+ Test +

+ + cloneWithClassName @@ -39,27 +43,31 @@ exports[`EditorDetailsPanel rendering renders expected elements when showButtons className="EditorDetailsPanel" id="test" > - -

- Test -

+

+ Test +

+ + cloneWithClassName - -

- Test -

+

+ Test +

+ + cloneWithClassName cloneWithClassName @@ -118,27 +130,31 @@ exports[`EditorDetailsPanel rendering renders expected elements with two childre className="EditorDetailsPanel" id="test" > - -

- Test -

+

+ Test +

+ + cloneWithClassName diff --git a/packages/pelagos/__tests__/table/__snapshots__/TableTitle-test.js.snap b/packages/pelagos/__tests__/table/__snapshots__/TableTitle-test.js.snap index c1a3cb98..97abf87a 100644 --- a/packages/pelagos/__tests__/table/__snapshots__/TableTitle-test.js.snap +++ b/packages/pelagos/__tests__/table/__snapshots__/TableTitle-test.js.snap @@ -2,9 +2,10 @@ exports[`TableTitle rendering renders expected elements 1`] = `

Test title diff --git a/packages/pelagos/less/headers.less b/packages/pelagos/less/headers.less index 08e9167e..b5452602 100644 --- a/packages/pelagos/less/headers.less +++ b/packages/pelagos/less/headers.less @@ -15,28 +15,26 @@ } h1 { - @font-24-400(); + @heading-04(); } h2 { - @font-18-400(); + @heading-03(); } h3 { - @font-16-600(); + @heading-02(); } h4 { - @font-14-600(); + @heading-compact-02(); } h5 { - @font-12-600(); - color: var(--text-secondary); + @heading-01(); } h6 { - @font-10-600(); - color: var(--text-secondary); + @heading-compact-01(); } } diff --git a/packages/pelagos/less/inputs.less b/packages/pelagos/less/inputs.less index b1296942..47a4feef 100644 --- a/packages/pelagos/less/inputs.less +++ b/packages/pelagos/less/inputs.less @@ -16,7 +16,7 @@ } ::placeholder { - @font-12-400(); + @body-compact-01(); color: var(--text-placeholder); @media print { diff --git a/packages/pelagos/src/components/BlockHeader.js b/packages/pelagos/src/components/BlockHeader.js index 5d3e2cd1..616a8dc4 100644 --- a/packages/pelagos/src/components/BlockHeader.js +++ b/packages/pelagos/src/components/BlockHeader.js @@ -3,7 +3,7 @@ import {t} from '@bluecateng/l10n.macro'; import './BlockHeader.less'; -/** Header for a form section. */ +/** Header for a form section, usually as a Collapsible title. */ const BlockHeader = ({className, header, configured}) => (

{header} diff --git a/packages/pelagos/src/components/BlockHeader.less b/packages/pelagos/src/components/BlockHeader.less index f3a7a34f..f9639fe7 100644 --- a/packages/pelagos/src/components/BlockHeader.less +++ b/packages/pelagos/src/components/BlockHeader.less @@ -3,19 +3,19 @@ @layer pelagos { .BlockHeader { + @body-01(); display: flex; flex-direction: row; align-items: center; } .BlockHeader__indicator { - @font-10-400(); + @helper-text-01(); color: var(--text-helper); margin-left: @sp-12; } .BlockHeader--configured { - @font-12-400(); color: var(--text-secondary); } } diff --git a/packages/pelagos/src/components/Breadcrumb.less b/packages/pelagos/src/components/Breadcrumb.less index feedbb05..558ce0bf 100644 --- a/packages/pelagos/src/components/Breadcrumb.less +++ b/packages/pelagos/src/components/Breadcrumb.less @@ -7,7 +7,7 @@ } .Breadcrumb__crumbs { - @font-12-400(); + @body-compact-01(); color: var(--text-primary); display: block; } @@ -26,7 +26,7 @@ .Breadcrumb__back { position: absolute; left: -32px; - top: -8px; + top: -7px; } @media print { diff --git a/packages/pelagos/src/components/Button.less b/packages/pelagos/src/components/Button.less index c5b8a31a..15b28ba5 100644 --- a/packages/pelagos/src/components/Button.less +++ b/packages/pelagos/src/components/Button.less @@ -6,7 +6,7 @@ @layer pelagos { .Button { @focus-visible(); - @font-14-600(); + @body-compact-01(); display: inline-flex; align-items: center; white-space: nowrap; diff --git a/packages/pelagos/src/components/Calendar.less b/packages/pelagos/src/components/Calendar.less index 63267c9c..daf1ae47 100644 --- a/packages/pelagos/src/components/Calendar.less +++ b/packages/pelagos/src/components/Calendar.less @@ -22,8 +22,7 @@ } .Calendar__dayLabel { - @font-10-600(); - color: var(--text-secondary); + @body-compact-01(); } .Calendar__cell { diff --git a/packages/pelagos/src/components/Collapsible.less b/packages/pelagos/src/components/Collapsible.less index 7bfc3881..83a7d079 100644 --- a/packages/pelagos/src/components/Collapsible.less +++ b/packages/pelagos/src/components/Collapsible.less @@ -21,6 +21,7 @@ } .Collapsible__title { + @body-01(); flex: 1; text-align: left; } diff --git a/packages/pelagos/src/components/DetailRegion.less b/packages/pelagos/src/components/DetailRegion.less index 495ce933..e8e9c4ee 100644 --- a/packages/pelagos/src/components/DetailRegion.less +++ b/packages/pelagos/src/components/DetailRegion.less @@ -13,7 +13,7 @@ } &__title { - @font-12-400(); + @label-01(); color: var(--text-secondary); } } diff --git a/packages/pelagos/src/components/Dialog.less b/packages/pelagos/src/components/Dialog.less index 06aa5cab..bed1f629 100644 --- a/packages/pelagos/src/components/Dialog.less +++ b/packages/pelagos/src/components/Dialog.less @@ -108,7 +108,7 @@ } &__title { - @font-16-600(); + @heading-03(); @ellipsis(); padding: @sp-16; border-bottom: 1px solid var(--border-subtle); diff --git a/packages/pelagos/src/components/EditorDetailsPanel.js b/packages/pelagos/src/components/EditorDetailsPanel.js index 196566da..6b4395f5 100644 --- a/packages/pelagos/src/components/EditorDetailsPanel.js +++ b/packages/pelagos/src/components/EditorDetailsPanel.js @@ -27,20 +27,21 @@ const EditorDetailsPanel = ({ onDelete, }) => (