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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap
-
components/alert/__tests__/__snapshots__/demo.test.ts.snap
-
components/alert/demo/action.tsx
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|