UNPKG

983 BTypeScriptView Raw
1import { IRawStyle } from '@uifabric/merge-styles';
2export interface IGetFocusStylesOptions {
3 /**
4 * The number of pixels to inset the border.
5 * @defaultvalue 0
6 */
7 inset?: number;
8 /**
9 * The width of the border in pixels.
10 * @defaultvalue 1
11 */
12 width?: number;
13 /**
14 * The positioning applied to the container.
15 * Must be 'relative' or 'absolute' so that the focus border can live around it.
16 * @defaultvalue 'relative'
17 */
18 position?: 'relative' | 'absolute';
19 /**
20 * Style for high contrast mode.
21 */
22 highContrastStyle?: IRawStyle;
23 /**
24 * Color of the border.
25 * @defaultvalue theme.palette.white
26 */
27 borderColor?: string;
28 /**
29 * Color of the outline.
30 * @defaultvalue theme.palette.neutralSecondary
31 */
32 outlineColor?: string;
33 /**
34 * If the styles should apply on `:focus` pseudo element.
35 * @defaultvalue true
36 */
37 isFocusedOnly?: boolean;
38}