mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-26 03:08:51 +08:00
* update: remove accessibility word from menu items * update: remove top bar * update: add help button to the sidebar * update: re-add spacing in styled css code * update: create styled components
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
import Box from '@elementor/ui/Box';
|
|
import Container from '@elementor/ui/Container';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { styled } from '@elementor/ui/styles';
|
|
import { BottomBar } from '@ea11y/components';
|
|
import { IconDesignSettings, PositionSettings } from '@ea11y/layouts';
|
|
import { mixpanelService } from '@ea11y/services';
|
|
import { useEffect } from '@wordpress/element';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
const StyledBox = styled(Box)`
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 100%;
|
|
`;
|
|
|
|
const StyledContainer = styled(Container)`
|
|
overflow: auto;
|
|
max-height: 100%;
|
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
`;
|
|
|
|
const IconSettings = () => {
|
|
useEffect(() => {
|
|
mixpanelService.sendEvent('page_view', {
|
|
page: 'Button',
|
|
});
|
|
}, []);
|
|
|
|
return (
|
|
<StyledBox>
|
|
<StyledContainer>
|
|
<Typography variant="h4" fontWeight="400" marginBottom={4}>
|
|
{__('Button', 'pojo-accessibility')}
|
|
</Typography>
|
|
|
|
<IconDesignSettings marginBottom={4} />
|
|
|
|
<PositionSettings />
|
|
</StyledContainer>
|
|
<BottomBar />
|
|
</StyledBox>
|
|
);
|
|
};
|
|
|
|
export default IconSettings;
|