one-click-accessibility/modules/settings/assets/js/layouts/icon-design-settings.js
Nirbhay Singh 23cd09ec98
[APP-1530] scrollbars settings width (#296)
* update: title layout

* fix: width of the content

* update: browserlist
2025-06-18 14:53:11 +05:30

65 lines
1.4 KiB
JavaScript

import Box from '@elementor/ui/Box';
import Grid from '@elementor/ui/Grid';
import Typography from '@elementor/ui/Typography';
import { styled } from '@elementor/ui/styles';
import {
ColorPicker,
IconRadius,
IconSelect,
IconSize,
} from '@ea11y/components';
import { __ } from '@wordpress/i18n';
const IconDesignSettings = (props) => {
return (
<StyledWrapper {...props}>
<Box marginBottom={2}>
<Typography variant="subtitle1">
{__('Style', 'pojo-accessibility')}
</Typography>
<Typography variant="body2">
{__(
"Customize your widget's color, icon, and size to match your brand.",
'pojo-accessibility',
)}
</Typography>
</Box>
<StyledGrid>
<Box display="flex" flexDirection="column" gap={5}>
<IconSelect />
<IconSize />
</Box>
<Box>
<ColorPicker />
</Box>
</StyledGrid>
<StyledGrid>
<IconRadius />
</StyledGrid>
</StyledWrapper>
);
};
export default IconDesignSettings;
const StyledWrapper = styled(Box)`
padding: ${({ theme }) => theme.spacing(2)};
border: 1px solid ${({ theme }) => theme.palette.divider};
margin-left: auto;
margin-right: auto;
max-width: 1200px;
`;
const StyledGrid = styled(Grid)`
display: grid;
gap: ${({ theme }) => theme.spacing(5)};
padding: ${({ theme }) => theme.spacing(2)};
grid-template-columns: repeat(2, 1fr);
${({ theme }) => theme.breakpoints.down('lg')} {
grid-template-columns: repeat(1, 1fr);
}
`;