// 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/ActionCard/ActionCard.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'ActionCard.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .actionCard { --borderRadius: 0px; --gap: 24px; overflow: hidden; display: flex; flex-direction: column; gap: var(--gap); padding: 24px; background-color: oklch(0.9491 0 none); border-radius: var(--borderRadius); } .actionCard .typography { margin-bottom: 0; } .actionCard__header { --gap: 8px; display: flex; flex-direction: column; gap: var(--gap); align-content: stretch; justify-content: space-between; } .actionCard__tags { display: flex; flex-wrap: wrap-reverse; gap: var(--gap); align-self: flex-end; justify-content: flex-end; min-height: 22px; } .actionCard__title { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; } .actionCard__title img { max-height: 32px; } .actionCard__content { flex: 1 1 0px; } .actionCard__buttons { --gap: 12px; display: flex; flex-wrap: wrap-reverse; gap: var(--gap); justify-content: flex-start; } @media only screen and (min-width: 576px) { .actionCard--responsive .actionCard__tags { align-self: flex-start; } .actionCard--responsive .actionCard__header:has(.actionCard__tags) { flex-direction: row-reverse; } } `); }); });