From 90ea3e6f79c837fdaa22e000c8185e9f5638a99b Mon Sep 17 00:00:00 2001 From: RachelRadford21 Date: Mon, 24 Jun 2024 15:14:19 -0400 Subject: [PATCH 1/2] fix colors for pill kit --- .../Color.xcassets/Status/Neutral.colorset/Contents.json | 6 +++--- .../Color.xcassets/Status/Warning.colorset/Contents.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Neutral.colorset/Contents.json b/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Neutral.colorset/Contents.json index 7fee7e0f2..bb6df9bb5 100644 --- a/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Neutral.colorset/Contents.json +++ b/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Neutral.colorset/Contents.json @@ -5,9 +5,9 @@ "color-space" : "srgb", "components" : { "alpha" : "1.000", - "blue" : "214", - "green" : "205", - "red" : "193" + "blue" : "135", + "green" : "120", + "red" : "104" } }, "idiom" : "universal" diff --git a/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Warning.colorset/Contents.json b/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Warning.colorset/Contents.json index d2de33ecc..d3537b960 100644 --- a/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Warning.colorset/Contents.json +++ b/Sources/Playbook/Design Elements/Colors/Color.xcassets/Status/Warning.colorset/Contents.json @@ -6,8 +6,8 @@ "components" : { "alpha" : "1.000", "blue" : "0x00", - "green" : "0xBB", - "red" : "0xF9" + "green" : "0x95", + "red" : "0xC6" } }, "idiom" : "universal" From 18f5156c858c5c01ae8b56c1bc6ed495da4ab179 Mon Sep 17 00:00:00 2001 From: RachelRadford21 Date: Tue, 15 Oct 2024 10:37:18 -0400 Subject: [PATCH 2/2] truncate user name --- Sources/Playbook/Components/User/PBUser.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Playbook/Components/User/PBUser.swift b/Sources/Playbook/Components/User/PBUser.swift index 1d18b946d..b06e0bd34 100644 --- a/Sources/Playbook/Components/User/PBUser.swift +++ b/Sources/Playbook/Components/User/PBUser.swift @@ -88,6 +88,8 @@ public extension PBUser { Text(name) .pbFont(nameFont.font, variant: nameFont.variant) .foregroundColor(.text(.default)) + .lineLimit(1) + .truncationMode(.tail) bodyText.pbFont(territoryTitleFont, color: .text(.light)) .lineLimit(1) .truncationMode(.tail)