@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
21 lines • 1.22 kB
TypeScript
import { Interpolation } from '@emotion/react';
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
/**
* A utility to hide the default canvas style focus ring when using mouse input.
* Requires wrapping your components in an InputProvider component.
* @deprecated `hideMouseFocus` is deprecated and will be removed in a future major version. Please use [`focus-visible`](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible) when applying focus styles to elements.
*/
export declare const hideMouseFocus: CSSProperties;
/**
* A utility that simplifies focus selectors since you can't use nested syntax for some reason. Example:
* [`[data-whatinput="mouse"],
[data-whatinput="touch"],
[data-whatinput="pointer"]: {
'& .my-selector': {
...
}
},
* @deprecated `mouseFocusBehavior` is deprecated and will be removed in a future major version. Please use [`focus-visible`](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible) when applying focus styles to elements.
*/
export declare const mouseFocusBehavior: (selectors: Record<string, Interpolation<any>>) => Record<string, Interpolation<any>>;
//# sourceMappingURL=hideMouseFocus.d.ts.map