one-click-accessibility/modules/settings/assets/js/layouts/top-bar.js
Nirbhay Singh 1972e7c029
[APP-1561] New menu layout (#308)
* update: app menu and layout

* merge: latest changes from feature/remediation

* add: alert indicator to the closed sidebar

* fix: page layout for statement page

* update: menu display names

* fix: topbar menu layout

* update: sidebar menu width

* update: sidebar menu width

* fix: popup menu layout

* add: hover action to the toggle button

* update: my account menu

* fix: quota indicator for closed sidebar

* fix: icon alignments

* fix: scroll behaviour

* fix: page scroll behaviour

* fix: popup menu hover state

* update: quota bar and group layouts

* add: tooltips to the menu items

* update: make scans page fixed height and scrollable

* update: styles with theme references and added new styled components

* fix: make sidebar smoother

* update: accessibility page heading
2025-07-02 14:29:57 +05:30

34 lines
832 B
JavaScript

import AppBar from '@elementor/ui/AppBar';
import Box from '@elementor/ui/Box';
import Toolbar from '@elementor/ui/Toolbar';
import Typography from '@elementor/ui/Typography';
import { AppLogo } from '@ea11y/icons';
import { TopBarMenu } from '@ea11y/layouts';
import { __ } from '@wordpress/i18n';
const TopBar = () => {
return (
<AppBar
position="static"
color="transparent"
elevation={0}
variant="outlined"
>
<Toolbar
disableGutters
variant="dense"
sx={{ justifyContent: 'space-between', padding: 1 }}
>
<Box display="flex" flexDirection="row" gap={1} alignItems="center">
<AppLogo />
<Typography variant="h6" color="text.primary">
{__('Ally', 'pojo-accessibility')}
</Typography>
</Box>
<TopBarMenu />
</Toolbar>
</AppBar>
);
};
export default TopBar;