@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
24 lines (22 loc) • 791 B
JavaScript
import { css } from 'styled-components';
/**
* Shared focus ring for components with keyboard-only highlighting.
* Apply this only when keyboard highlighting is enabled/active.
*/
export const keyboardFocusHighlightingRingCss = css`
outline: solid 2px color-mix(in srgb, white 70%, transparent);
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
border-radius: 3px;
outline-offset: 1px;
`;
/**
* Circular focus ring variant for round controls (e.g. RadioButton).
*/
export const keyboardFocusHighlightingCircleRingCss = css`
outline: solid 2px color-mix(in srgb, white 70%, transparent);
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
border-radius: 50%;
outline-offset: 1px;
color: white;
`;
//# sourceMappingURL=keyboardFocusHighlighting.styles.js.map