feat(component): 캡슐 탭 선택 색상을 변경한다

This commit is contained in:
Yu Sung
2026-08-18 14:50:47 +09:00
parent b1cdbfe013
commit 6ff3dfb7ae
3 changed files with 310 additions and 3 deletions

View File

@@ -42,16 +42,16 @@ private struct CapsuleTabBarItem: View {
} label: {
Text(title)
.appFont(.body5)
.foregroundColor(Color.white)
.foregroundColor(isSelected ? Color.black : Color.white)
.lineLimit(1)
.padding(.horizontal, SodaSpacing.s12)
.padding(.vertical, SodaSpacing.s8)
.frame(height: 34)
.background(isSelected ? Color.soda400 : Color.black)
.background(isSelected ? Color.white : Color.black)
.clipShape(Capsule())
.overlay(
Capsule()
.stroke(isSelected ? Color.soda400 : Color.gray700, lineWidth: 1)
.stroke(isSelected ? Color.white : Color.gray700, lineWidth: 1)
)
}
.buttonStyle(.plain)