Skip to content

Commit

Permalink
docs(List) :fix content text color being fixed (#7756)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeHcc authored Oct 7, 2023
1 parent 5e729ad commit 1c9e059
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 56 deletions.
4 changes: 2 additions & 2 deletions packages/list/src/demos/ToolBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export default () => {
>
{(text as any[]).map((t) => (
<div key={t.label}>
<div style={{ color: '#00000073' }}>{t.label}</div>
<div style={{ color: '#000000D9' }}>
<div>{t.label}</div>
<div >
{t.status === 'success' && (
<span
style={{
Expand Down
72 changes: 18 additions & 54 deletions tests/list/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -232,38 +232,26 @@ exports[`list demos > 📸 renders ./packages/list/src/demos/ToolBar.tsx correct
style="display: flex; justify-content: space-around;"
>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
模型数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
2903
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
指标数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
3720
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
实验状态
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
<span
style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;"
/>
Expand Down Expand Up @@ -341,38 +329,26 @@ exports[`list demos > 📸 renders ./packages/list/src/demos/ToolBar.tsx correct
style="display: flex; justify-content: space-around;"
>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
模型数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
2904
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
指标数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
3721
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
实验状态
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
<span
style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;"
/>
Expand Down Expand Up @@ -450,38 +426,26 @@ exports[`list demos > 📸 renders ./packages/list/src/demos/ToolBar.tsx correct
style="display: flex; justify-content: space-around;"
>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
模型数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
2905
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
指标数
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
3722
</div>
</div>
<div>
<div
style="color: rgba(0, 0, 0, 0.451);"
>
<div>
实验状态
</div>
<div
style="color: rgba(0, 0, 0, 0.851);"
>
<div>
<span
style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;"
/>
Expand Down

0 comments on commit 1c9e059

Please sign in to comment.