Browse Source

demo: set button type in alert demo (#43567)

* fix: set button type in alert ghost button

* fix: set button type in alert ghost button

* feat: update snapshots
pull/43568/head
kiner-tang(文辉) 1 year ago
committed by GitHub
parent
commit
6b924029f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap
  2. 2
      components/alert/__tests__/__snapshots__/demo.test.ts.snap
  3. 2
      components/alert/demo/action.tsx

2
components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap

@ -165,7 +165,7 @@ exports[`renders components/alert/demo/action.tsx extend context correctly 1`] =
class="ant-space-item"
>
<button
class="ant-btn ant-btn-default ant-btn-sm ant-btn-background-ghost"
class="ant-btn ant-btn-text ant-btn-sm"
type="button"
>
<span>

2
components/alert/__tests__/__snapshots__/demo.test.ts.snap

@ -165,7 +165,7 @@ exports[`renders components/alert/demo/action.tsx correctly 1`] = `
class="ant-space-item"
>
<button
class="ant-btn ant-btn-default ant-btn-sm ant-btn-background-ghost"
class="ant-btn ant-btn-text ant-btn-sm"
type="button"
>
<span>

2
components/alert/demo/action.tsx

@ -30,7 +30,7 @@ const App: React.FC = () => (
type="warning"
action={
<Space>
<Button size="small" ghost>
<Button type="text" size="small" ghost>
Done
</Button>
</Space>

Loading…
Cancel
Save