// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../scripts/testStylesheets/config'; describe('components/PrintPosition/PrintPosition.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'PrintPosition.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .printPosition { --transitionDuration: 300ms; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: flex-end; min-width: 80px; height: 110px; padding: 8px; color: oklch(0 0 none); background-color: transparent; border-color: oklch(0.5999 0 none); border-style: solid; border-width: 1px; outline: none; transition-timing-function: ease-out; transition-duration: var(--transitionDuration); transition-property: border-color; } .printPosition:focus-visible, .printPosition:hover:not(:disabled) { border-color: oklch(0.4239 0 none); } .printPosition:disabled { cursor: default; background-color: oklch(0.6764 0 none); } .printPosition__position { font-family: 'Inter', 'Arial', sans-serif; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0.4px; } .printPosition__position:where(.printPosition:disabled > .printPosition__position) { color: oklch(1 0 none); } .printPosition__position:last-child { margin: auto 0; } .printPosition__label { visibility: hidden; } .printPosition__label:where(.printPosition:focus-visible > .printPosition__label), .printPosition__label:where(.printPosition:hover:not(:disabled) > .printPosition__label) { visibility: visible; } `); }); });