Skip to content

Commit

Permalink
Progress is-empty, fixed #820
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed Aug 2, 2022
1 parent 1f6778e commit 76d6991
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions languages/en-us/components/progress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ Definitions:
- Title: Variations
Description:
Sections:
- Title: Empty
Anchor: Empty
Description: 當進度為零時,可以指定其狀態為空並隱藏進度條的背景。
Since: 4.0.0
HTML: |
<div class="ts-progress [[is-empty]]">
<div class="bar" style="--value: 0;">
<div class="[[text]]">0%</div>
</div>
</div>
- Title: Secondary
Anchor: Secondary
Description: 次要的進度列可以作為緩衝值或是輔助使用。
Expand Down
11 changes: 11 additions & 0 deletions languages/zh-tw/components/progress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ Definitions:
- Title: 外觀
Description:
Sections:
- Title: 空的
Anchor: Empty
Description: 當進度為零時,可以指定其狀態為空並隱藏進度條的背景。
Since: 4.0.0
HTML: |
<div class="ts-progress [[is-empty]]">
<div class="bar" style="--value: 0;">
<div class="[[text]]">0%</div>
</div>
</div>
- Title: 次要列
Anchor: Secondary
Description: 次要的進度列可以作為緩衝值或是輔助使用。
Expand Down
9 changes: 9 additions & 0 deletions src/progress.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@
animation: ts-progress-active 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/**
* Empty
*/

.ts-progress.is-empty .bar {
background: transparent;
color: var(--ts-gray-800);
}

/**
* Processing
*/
Expand Down

0 comments on commit 76d6991

Please sign in to comment.