Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-dialog/lib/components/DialogContent/useDialogContentStyles.styles.raw.js

33 lines
1019 B
JavaScript

'use client';
import { makeResetStyles, mergeClasses } from '@griffel/react';
import { tokens, typographyStyles } from '@fluentui/react-theme';
import { DIALOG_MEDIA_QUERY_SHORT_SCREEN } from '../../contexts';
export const dialogContentClassNames = {
root: 'fui-DialogContent'
};
/**
* Styles for the root slot
*/ const useStyles = makeResetStyles({
padding: tokens.strokeWidthThick,
margin: `calc(${tokens.strokeWidthThick} * -1)`,
...typographyStyles.body1,
overflowY: 'auto',
minHeight: '32px',
boxSizing: 'border-box',
gridRowStart: 2,
gridRowEnd: 2,
gridColumnStart: 1,
gridColumnEnd: 4,
[DIALOG_MEDIA_QUERY_SHORT_SCREEN]: {
overflowY: 'unset'
}
});
/**
* Apply styling to the DialogContent slots based on the state
*/ export const useDialogContentStyles_unstable = (state)=>{
'use no memo';
const styles = useStyles();
state.root.className = mergeClasses(dialogContentClassNames.root, styles, state.root.className);
return state;
};