From 10f78a916a430360124abec2b668a7e2c6fa1f6b Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Wed, 8 Feb 2023 21:51:06 +0800 Subject: [PATCH] docs: update box-shadow --- .dumi/theme/slots/Header/index.tsx | 2 +- scripts/check-site.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dumi/theme/slots/Header/index.tsx b/.dumi/theme/slots/Header/index.tsx index fa9f7beac9..fe27ae8547 100644 --- a/.dumi/theme/slots/Header/index.tsx +++ b/.dumi/theme/slots/Header/index.tsx @@ -33,7 +33,7 @@ const useStyle = () => { z-index: 10; max-width: 100%; background: ${token.colorBgContainer}; - box-shadow: ${token.boxShadow}; + box-shadow: ${token.boxShadowTertiary}; @media only screen and (max-width: ${token.mobileMaxWidth}px) { text-align: center; diff --git a/scripts/check-site.js b/scripts/check-site.js index 448c1f6f29..31217a3bd2 100755 --- a/scripts/check-site.js +++ b/scripts/check-site.js @@ -41,7 +41,7 @@ describe('site test', () => { const expectComponent = async (component) => { const { status, $ } = await render(`/${component}/`); expect(status).toBe(200); - expect($('h1').text().toLowerCase()).toMatch(handleComponentName(component)); + expect($('main h1').text().toLowerCase()).toMatch(handleComponentName(component)); }; beforeAll(() => {