UNPKG

@porsche-design-system/components-angular

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

16 lines (13 loc) 378 B
import { colorFocus } from '../color/light-dark/colorFocus.mjs'; const getFocusVisibleStyle = (opts) => { const { offset = '2px' } = opts || {}; return { selectors: { '&:focus-visible': { outline: `2px solid ${colorFocus}`, outlineOffset: offset, }, }, }; }; export { getFocusVisibleStyle };