Properly style CassandraAddCollectionPane (#862)

This commit is contained in:
victor-meng
2021-06-11 14:25:05 -07:00
committed by GitHub
parent 959d34d88d
commit baa3252ba8
6 changed files with 226 additions and 457 deletions

View File

@@ -0,0 +1,20 @@
import { ITextFieldStyles } from "@fluentui/react";
interface TextFieldStylesProps {
fontSize: number | string;
width: number | string;
}
export const getTextFieldStyles = (params?: TextFieldStylesProps): Partial<ITextFieldStyles> => ({
field: {
fontSize: params?.fontSize || 12,
selectors: {
"::placeholder": {
fontSize: params?.fontSize || 12,
},
},
},
root: {
width: params?.width || 300,
},
});