Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix: add aria-label to traffic progress bar for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Feb 3, 2025
1 parent 35c239e commit 2b0901c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/src/components/profiles/profile-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ const ProfileItem: React.FC<Props> = (props) => {
{extra && (
<Progress
className="w-full"
aria-label="流量使用进度"
classNames={{
indicator: isCurrent ? 'bg-primary-foreground' : 'bg-foreground'
}}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/components/sider/profile-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const ProfileCard: React.FC<Props> = (props) => {
{extra && (
<Progress
className="w-full"
aria-label="流量使用进度"
classNames={{ indicator: match ? 'bg-primary-foreground' : 'bg-foreground' }}
value={calcPercent(extra?.upload, extra?.download, extra?.total)}
/>
Expand Down

0 comments on commit 2b0901c

Please sign in to comment.