Skip to content

Commit e34cb26

Browse files
committed
fix: allow padding for container-bordering focus outlines
1 parent dee744e commit e34cb26

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/Article/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { FunctionComponent as FC } from 'react';
22
import { ArticleFooter } from './ArticleFooter';
33

44
const Article: FC<{ children: React.ReactNode }> = ({ children }) => (
5-
<article className="flex-1 overflow-x-hidden relative z-10">
5+
<article className="flex-1 overflow-x-hidden px-4 -mx-4 relative z-10">
66
{children}
77
<ArticleFooter />
88
</article>

src/components/Layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const Layout: React.FC<LayoutProps> = ({ children, pageContext }) => {
4242
<Header />
4343
<div className="flex pt-16 px-12 md:px-0 md:gap-12 lg:gap-16 xl:gap-20 justify-center">
4444
{leftSidebar ? <LeftSidebar /> : <div />}
45-
<Container as="main" className={cn('flex-1', { 'overflow-x-auto': !isRedocPage })}>
45+
<Container as="main" className={cn('flex-1 px-4 -mx-4', { 'overflow-x-auto': !isRedocPage })}>
4646
{leftSidebar ? <Breadcrumbs /> : <div />}
4747
{children}
4848
<Footer />

src/components/Layout/mdx/PageHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { useMemo } from 'react';
2+
import * as Tooltip from '@radix-ui/react-tooltip';
23
import Icon from '@ably/ui/core/Icon';
3-
import { LanguageSelector } from '../LanguageSelector';
44
import { track } from '@ably/ui/core/insights';
5-
import * as Tooltip from '@radix-ui/react-tooltip';
5+
import { IconName } from '@ably/ui/core/Icon/types';
6+
import { LanguageSelector } from '../LanguageSelector';
67
import { productData } from 'src/data';
78
import { languageInfo } from 'src/data/languages';
89
import { useLayoutContext } from 'src/contexts/layout-context';
9-
import { IconName } from '@ably/ui/core/Icon/types';
1010
import { tooltipContentClassName } from '../utils/styles';
1111

1212
type PageHeaderProps = {
@@ -54,7 +54,7 @@ export const PageHeader: React.FC<PageHeaderProps> = ({ title, description }) =>
5454
href={link}
5555
target="_blank"
5656
rel="noopener noreferrer"
57-
className="flex text-neutral-900 dark:text-neutral-400 cursor-pointer p-1.5"
57+
className="flex text-neutral-900 dark:text-neutral-400 cursor-pointer p-1.5 focus-base rounded-lg"
5858
onClick={() => {
5959
track('llm_link_clicked', {
6060
model,

0 commit comments

Comments
 (0)