收口创作中心积分领取按钮
将作品卡积分激励领取按钮迁移到 PlatformActionButton 保留积分激励按钮紧凑布局和移动端跨列样式 补充领取按钮公共组件和 CSS 覆盖断言 更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
@@ -114,6 +114,29 @@ describe('index stylesheet unread dots', () => {
|
||||
expect(block).toContain('var(--platform-cool-bg)');
|
||||
expect(block).not.toContain('background: transparent;');
|
||||
});
|
||||
|
||||
it('keeps the creation shelf point incentive action button compact', () => {
|
||||
const css = readIndexCss();
|
||||
const surfaceBlock = getCssBlock(
|
||||
css,
|
||||
'.creation-work-card-incentive__button.platform-button',
|
||||
);
|
||||
const compactButtonBlock = getCssBlock(
|
||||
css,
|
||||
'.creation-work-card-incentive__button.platform-button {\n display: inline-flex;',
|
||||
);
|
||||
const mobileQueryIndex = css.indexOf('@media (max-width: 639px)');
|
||||
const mobileSelectorIndex = css.indexOf(
|
||||
'.creation-work-card-incentive__button.platform-button',
|
||||
mobileQueryIndex,
|
||||
);
|
||||
|
||||
expect(surfaceBlock).toContain('border: 1px solid');
|
||||
expect(surfaceBlock).toContain('background: color-mix(');
|
||||
expect(compactButtonBlock).toContain('min-height: 2.55rem;');
|
||||
expect(compactButtonBlock).toContain('font-size: 0.68rem;');
|
||||
expect(mobileSelectorIndex).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('index stylesheet draft mobile cards', () => {
|
||||
|
||||
Reference in New Issue
Block a user