diff --git a/apps/admin-x-settings/src/App.tsx b/apps/admin-x-settings/src/App.tsx index 2dc2ac01f6..3322536a5a 100644 --- a/apps/admin-x-settings/src/App.tsx +++ b/apps/admin-x-settings/src/App.tsx @@ -39,7 +39,7 @@ function App({ghostVersion, officialThemes, setDirty}: AppProps) { -
+
diff --git a/apps/admin-x-settings/src/admin-x-ds/global/Heading.tsx b/apps/admin-x-settings/src/admin-x-ds/global/Heading.tsx index 00a669392b..21e34bc808 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/Heading.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/Heading.tsx @@ -37,6 +37,8 @@ type HeadingLabelProps = { level?: never, grey?: boolean } & HeadingBaseProps & React.LabelHTMLAttributes +export const Heading6Styles = 'text-2xs font-semibold uppercase tracking-wide'; + const Heading: React.FC = ({ level, children, @@ -52,7 +54,7 @@ const Heading: React.FC = } const newElement = `${useLabelTag ? 'label' : `h${level}`}`; - styles += (level === 6 || useLabelTag) ? (` block text-2xs font-semibold uppercase tracking-wide ${(grey && 'text-grey-700')}`) : ' '; + styles += (level === 6 || useLabelTag) ? (` block text-2xs ${Heading6Styles} ${(grey && 'text-grey-700')}`) : ' '; const Element = React.createElement(newElement, {className: styles + ' ' + className, key: 'heading-elem', ...props}, children); diff --git a/apps/admin-x-settings/src/admin-x-ds/global/form/Checkbox.tsx b/apps/admin-x-settings/src/admin-x-ds/global/form/Checkbox.tsx index 0b3488a8ef..b1ab507485 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/form/Checkbox.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/form/Checkbox.tsx @@ -3,7 +3,7 @@ import Hint from '../Hint'; import React, {useEffect, useId, useState} from 'react'; import Separator from '../Separator'; -interface CheckboxProps { +export interface CheckboxProps { title?: string; label: string; value: string; @@ -11,6 +11,7 @@ interface CheckboxProps { disabled?: boolean; error?: boolean; hint?: React.ReactNode; + key?: string; checked?: boolean; separator?: boolean; } @@ -36,7 +37,7 @@ const Checkbox: React.FC = ({title, label, value, onChange, disab