Skip to content

Commit

Permalink
Update counter component (#133)
Browse files Browse the repository at this point in the history
* solid counter

* update snapshots

* pr suggestion

* removed unused parameter

* fixed tests and improved public APIs

* improved code

* fixed a test

* counter component updated
  • Loading branch information
Velin92 authored Dec 16, 2024
1 parent cac1501 commit 1a70bc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Compound/List/ListRowTrailingSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public struct ListRowTrailingSection<Icon: View>: View {

if let counter {
Text("\(counter)")
.font(.compound.bodyXSSemibold)
.font(.compound.bodyLG)
.foregroundStyle(.compound.textOnSolidPrimary)
.padding(.horizontal, 6)
.padding(.horizontal, 8)
.padding(.vertical, 2)
.background { Capsule().fill(isEnabled ? .compound.iconSuccessPrimary : .compound.iconDisabled) }
}
Expand Down

0 comments on commit 1a70bc7

Please sign in to comment.