// 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/Avatar/Avatar.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Avatar.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .avatar { --transitionDuration: 300ms; display: inline-flex; gap: 12px; align-items: center; } @media (prefers-reduced-motion: reduce) { .avatar { --transitionDuration: 0ms; } } .avatar__image { position: relative; display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; min-width: 36px; max-width: 36px; min-height: 36px; max-height: 36px; } .avatar__imageImg, .avatar__abbreviation { overflow: hidden; display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; min-width: 40px; max-width: 40px; min-height: 40px; max-height: 40px; border: 1px solid oklch(0.8761 0 none); border-radius: 50%; } .avatar__abbreviation { font-family: 'Inter', 'Arial', sans-serif; font-size: 14px; font-weight: 400; font-style: normal; line-height: 22px; color: oklch(0 0 none); text-align: center; text-decoration: none; letter-spacing: 0.16px; background: oklch(0.9491 0 none); } .avatar__imageImg { position: absolute; opacity: 1; object-fit: cover; border-radius: 50%; transition: opacity var(--transitionDuration) ease-in-out; } .avatar__text { display: inline-flex; flex-direction: column; } .avatar__textName { font-family: 'Inter', 'Arial', sans-serif; font-size: 12px; font-weight: 700; font-style: normal; line-height: 18px; color: oklch(0 0 none); letter-spacing: 0.1px; } .avatar__textDescription { font-family: 'Inter', 'Arial', sans-serif; font-size: 12px; font-weight: 400; font-style: normal; line-height: 18px; color: oklch(0.5999 0 none); letter-spacing: 0.1px; } `); }); });