Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/MDX/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const CodeBlock = React.forwardRef(
const decorators = getDecoratedLineInfo();
return (
<div
translate="no"
className={cn(
'rounded-lg h-full w-full overflow-x-auto flex items-center bg-white shadow-lg',
!noMargin && 'my-8'
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/ConsoleBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ConsoleBlock({level = 'info', children}: ConsoleBlockProps) {
}

return (
<div className="mb-4">
<div className="mb-4" translate="no">
<div
className="flex w-full rounded-t-lg"
style={{backgroundColor: '#DADEE0'}}>
Expand Down
1 change: 1 addition & 0 deletions src/components/MDX/Sandpack/CustomPreset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function CustomPreset({
/>
{isExpandable && (
<button
translate="yes"
className="flex text-base justify-between dark:border-card-dark bg-wash dark:bg-card-dark items-center z-10 rounded-t-none p-1 w-full order-2 xl:order-last border-b-1 relative top-0"
onClick={() => setIsExpanded((prevExpanded) => !prevExpanded)}>
<span className="flex p-2 focus:outline-none text-primary dark:text-primary-dark">
Expand Down
4 changes: 3 additions & 1 deletion src/components/MDX/Sandpack/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export function NavigationBar({
<div className="px-4 lg:px-6">
{dropdownActive ? <FilesDropdown /> : <FileTabs />}
</div>
<div className="px-3 flex items-center justify-end flex-grow text-right">
<div
className="px-3 flex items-center justify-end flex-grow text-right"
translate="yes">
{showDownload && <DownloadButton />}
<ResetButton onReset={onReset} />
<OpenInCodeSandboxButton className="ml-2 md:ml-4" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/Sandpack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function Sandpack(props: SandpackProps) {
}

return (
<div className="my-8">
<div className="my-8" translate="no">
<SandpackProvider
key={key}
template="react"
Expand Down