Skip to content

Commit

Permalink
Merge pull request #496 from Lemoncode/fixaccessibilitybug/#487-12-ma…
Browse files Browse the repository at this point in the history
…in-section-HTML

#487 12 main section html
  • Loading branch information
brauliodiez committed May 23, 2024
2 parents 40134a4 + 615ccb6 commit 0cc30d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pods/canvas/canvas.pod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const CanvasPod: React.FC = () => {
}, [modalDialog.isOpen, canvasSchema.selectedElementId]);

return (
<div
<main
className={classes.container}
ref={containerRef}
onScroll={handleScroll}
Expand Down Expand Up @@ -282,6 +282,6 @@ export const CanvasPod: React.FC = () => {
/>
)}
</div>
</div>
</main>
);
};
4 changes: 2 additions & 2 deletions src/pods/footer/footer.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export const FooterComponent: React.FC = () => {
? getFileNameCanvasIsPristine(filename, NEW_DOCUMENT_NAME)
: getFileNameCanvasDirty(filename, NEW_DOCUMENT_NAME, ASTERISK);
return (
<div className={classes.footerText}>
<footer className={classes.footerText}>
<span>{isDevice ? documentNameMobile() : documentName()}</span>
<button onClick={toggleTheme} className="mobile-only">
{theme.themeMode === 'dark' ? <LightIcon /> : <DarkIcon />}
</button>
</div>
</footer>
);
};
4 changes: 2 additions & 2 deletions src/pods/toolbar/toolbar.pod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import classes from './toolbar.pod.module.css';

export const ToolbarPod: React.FC = () => {
return (
<div className={classes.container}>
<header className={classes.container}>
<NewButton />
<OpenButton />
<SaveButton />
Expand All @@ -35,6 +35,6 @@ export const ToolbarPod: React.FC = () => {
<CanvasSettingButton />
<AboutButton />
<ThemeToggleButton darkLabel="Dark Mode" lightLabel="Light Mode" />
</div>
</header>
);
};

0 comments on commit 0cc30d2

Please sign in to comment.