diff --git a/components/Blockquote.tsx b/components/Blockquote.tsx index f0160e2c6aaa..34fa562a4257 100644 --- a/components/Blockquote.tsx +++ b/components/Blockquote.tsx @@ -10,7 +10,7 @@ export const Blockquote = ({ children, ...props }: BlockquoteProps) => { sx={{ my: Spacing.XL, p: Spacing.L_XL, - borderLeft: buildBorder('Purple', '4px'), + borderInlineStart: buildBorder('Purple', '4px'), bg: 'Purple8', }} {...props} diff --git a/components/DocSearch.tsx b/components/DocSearch.tsx index 01c0e7594de3..da0a15fa68c8 100644 --- a/components/DocSearch.tsx +++ b/components/DocSearch.tsx @@ -76,11 +76,16 @@ export function DocSearch(props: DocSearchProps) { {props?.translations?.button?.buttonText ?? 'Search'} {/* TODO: Remove `fontFamily: 'inherit'` when it's included in `@edgeandnode/components`'s global styles */} - + - K + K @@ -128,8 +133,7 @@ export function DocSearch(props: DocSearchProps) { content: `''`, zIndex: 100, position: 'absolute', - left: Spacing.L_XL, - right: Spacing.L_XL, + insetInline: Spacing.L_XL, bottom: '-1px', borderBottom: buildBorder('White16')(theme), backgroundColor: 'var(--docsearch-modal-background)', @@ -159,8 +163,8 @@ export function DocSearch(props: DocSearchProps) { }, }, '.DocSearch-Cancel': { - marginLeft: Spacing.L, - marginRight: Spacing.S, + marginInlineStart: Spacing.L, + marginInlineEnd: Spacing.S, color: 'inherit', }, '.DocSearch-Dropdown': { @@ -236,7 +240,7 @@ export function DocSearch(props: DocSearchProps) { textOverflow: 'ellipsis', }, '.DocSearch-Hit-action': { - marginLeft: Spacing.L, + marginInlineStart: Spacing.L, }, '.DocSearch-HitsFooter': { display: 'none', @@ -244,18 +248,14 @@ export function DocSearch(props: DocSearchProps) { '.DocSearch-Footer': { position: 'fixed', bottom: 0, - left: 0, - right: 0, + insetInline: 0, padding: Spacing.L, backgroundColor: 'transparent', boxShadow: 'none', '&::before': { content: `''`, position: 'absolute', - left: 0, - right: 0, - top: 0, - bottom: 0, + inset: 0, backgroundColor: 'var(--docsearch-modal-background)', opacity: Opacity['88%'], [`@media (min-width: ${BREAKPOINT})`]: { diff --git a/components/Heading.tsx b/components/Heading.tsx index 545aabca94d8..6b1e92ff57cf 100644 --- a/components/Heading.tsx +++ b/components/Heading.tsx @@ -46,7 +46,7 @@ const BaseHeading = ({ level, id, className, children, ...props }: HeadingProps) {id ? ( { sx={{ mt: Spacing.L, mb: Spacing.L_XL, - pl: Spacing.XL, + paddingInlineStat: Spacing.XL, listStyleType: as === 'ol' ? 'decimal' : 'disc', '& > li': { display: 'list-item', diff --git a/components/NavTree.tsx b/components/NavTree.tsx index 8d11f0883954..574cd28fe4b3 100644 --- a/components/NavTree.tsx +++ b/components/NavTree.tsx @@ -9,6 +9,7 @@ import { IconProps, Spacing, buildTransition, + Locale, } from '@edgeandnode/components' import { keyframes } from '@emotion/react' import { SxProp } from 'theme-ui' @@ -88,7 +89,7 @@ const NavTreeItem = ({ size="12px" sx={{ position: 'absolute', - left: Spacing.S, + insetInlineStart: Spacing.S, top: 0, bottom: 0, my: 'auto', @@ -130,7 +131,7 @@ const NavTreeGroupHeading = ({ children, buttonProps = {}, ...props }: NavTreeGr -
    {children}
+
    {children}
) } @@ -185,7 +186,7 @@ const NavTreeDivider = (props: NavTreeDividerProps) => { const NavTreeHeading = ({ children, ...props }: NavTreeHeadingProps) => { return ( -
  • +
  • {children}
  • ) diff --git a/layout/MDXLayout.tsx b/layout/MDXLayout.tsx index 7d0b3dcce640..b69ade5a6e95 100644 --- a/layout/MDXLayout.tsx +++ b/layout/MDXLayout.tsx @@ -147,8 +147,8 @@ export const MDXLayout = ({ pagePath, navItems, frontmatter, outline, children } sx={{ display: ['none', null, null, 'block'], mt: 'calc(-1 * var(--gds-header-height) * var(--gds-header-fixed))', - ml: '-8px', - mr: '24px', + marginInlineStart: '-8px', + marginInlineEnd: '24px', }} > @@ -187,8 +187,8 @@ export const MDXLayout = ({ pagePath, navItems, frontmatter, outline, children } sx={{ display: ['none', null, null, 'block'], mt: 'calc(-1 * var(--gds-header-height) * var(--gds-header-fixed))', - ml: '40px', - mr: '-8px', + marginInlineStart: '40px', + marginInlineEnd: '-8px', }} > diff --git a/layout/MDXLayoutNav.tsx b/layout/MDXLayoutNav.tsx index 5269b1e00c84..6620e4a1fb00 100644 --- a/layout/MDXLayoutNav.tsx +++ b/layout/MDXLayoutNav.tsx @@ -35,7 +35,7 @@ const DesktopWrapper = ({ children }: PropsWithChildren<{}>) => { position: 'sticky', top: 0, maxHeight: '100vh', - pr: Spacing.L_XL, + paddingInlineEnd: Spacing.L_XL, pt: Spacing.XL, pb: Spacing.L, overflowY: 'auto', @@ -172,7 +172,10 @@ export const MDXLayoutNav = ({ mobile = false }: { mobile?: boolean }) => { if ('children' in navItem) { return ( - + {navItem.title} @@ -182,7 +185,7 @@ export const MDXLayoutNav = ({ mobile = false }: { mobile?: boolean }) => { href={childNavItem.path} active={currentPage?.path === childNavItem.path} sx={mobile ? { py: 0 } : {}} - linkProps={{ sx: mobile ? {} : { pr: 0 } }} + linkProps={{ sx: mobile ? {} : { paddingInlineEnd: 0 } }} > {childNavItem.title} @@ -196,8 +199,8 @@ export const MDXLayoutNav = ({ mobile = false }: { mobile?: boolean }) => { href={navItem.path} active={currentPage?.path === navItem.path} sx={mobile ? { py: 0 } : {}} - linkProps={{ sx: mobile ? {} : { pr: 0 } }} - diamondProps={{ sx: mobile ? { left: '6px' } : {} }} + linkProps={{ sx: mobile ? {} : { paddingInlineEnd: 0 } }} + diamondProps={{ sx: mobile ? { insetInlineStart: '6px' } : {} }} > {navItem.title} diff --git a/layout/MDXLayoutOutline.tsx b/layout/MDXLayoutOutline.tsx index 1f5baf08f029..de5ee25dce20 100644 --- a/layout/MDXLayoutOutline.tsx +++ b/layout/MDXLayoutOutline.tsx @@ -37,7 +37,7 @@ export const MDXLayoutOutline = () => { -