docs(button): update Flex gap from 'middle' to 'small' in color-variant demo (#52307)
Some checks are pending
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run

* docs(button): update Flex gap from 'middle' to 'small' in color-variant demo

* test: update snap

---------

Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
ice 2025-01-08 22:19:04 +08:00 committed by GitHub
parent 94f57ee8ff
commit 4d96645de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 10 deletions

View File

@ -493,7 +493,7 @@ exports[`renders components/button/demo/color-variant.tsx extend context correct
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-pink ant-btn-variant-solid ant-btn-sm"
@ -545,7 +545,7 @@ exports[`renders components/button/demo/color-variant.tsx extend context correct
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-purple ant-btn-variant-solid ant-btn-sm"
@ -597,7 +597,7 @@ exports[`renders components/button/demo/color-variant.tsx extend context correct
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-cyan ant-btn-variant-solid ant-btn-sm"

View File

@ -485,7 +485,7 @@ exports[`renders components/button/demo/color-variant.tsx correctly 1`] = `
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-pink ant-btn-variant-solid ant-btn-sm"
@ -537,7 +537,7 @@ exports[`renders components/button/demo/color-variant.tsx correctly 1`] = `
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-purple ant-btn-variant-solid ant-btn-sm"
@ -589,7 +589,7 @@ exports[`renders components/button/demo/color-variant.tsx correctly 1`] = `
</button>
</div>
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-middle"
class="ant-flex ant-flex-wrap-wrap ant-flex-gap-small"
>
<button
class="ant-btn ant-btn-default ant-btn-color-cyan ant-btn-variant-solid ant-btn-sm"

View File

@ -68,7 +68,7 @@ const App: React.FC = () => {
Link
</Button>
</Flex>
<Flex gap="middle" wrap>
<Flex gap="small" wrap>
<Button color="pink" variant="solid">
Solid
</Button>
@ -88,7 +88,7 @@ const App: React.FC = () => {
Link
</Button>
</Flex>
<Flex gap="middle" wrap>
<Flex gap="small" wrap>
<Button color="purple" variant="solid">
Solid
</Button>
@ -108,8 +108,7 @@ const App: React.FC = () => {
Link
</Button>
</Flex>
<Flex gap="middle" wrap>
<Flex gap="small" wrap>
<Button color="cyan" variant="solid">
Solid
</Button>