From 003c608cc5b8ab6bfae5f51737cad8791c1d33e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Wischer?= Date: Thu, 16 Jul 2026 09:23:03 +0200 Subject: [PATCH] Revert "Add a visible custom focus ring to the standard button style" This reverts commit 3f2434c94761877b96fe5bc2e9acc9dfc2b8db2a. --- .../Sources/Compound/BaseStyles/CompoundButtonStyle.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compound-ios/Sources/Compound/BaseStyles/CompoundButtonStyle.swift b/compound-ios/Sources/Compound/BaseStyles/CompoundButtonStyle.swift index a186c7c72..5b41a1da6 100644 --- a/compound-ios/Sources/Compound/BaseStyles/CompoundButtonStyle.swift +++ b/compound-ios/Sources/Compound/BaseStyles/CompoundButtonStyle.swift @@ -22,7 +22,6 @@ public struct CompoundButtonStyle: ButtonStyle { @Environment(\.isEnabled) private var isEnabled @Environment(\.colorScheme) private var colorScheme @Environment(\.accessibilityShowButtonShapes) private var accessibilityShowButtonShapes - @Environment(\.isFocused) private var isFocused var kind: Kind public enum Kind { @@ -118,11 +117,6 @@ public struct CompoundButtonStyle: ButtonStyle { makeBackground(configuration: configuration) } .contentShape(contentShape) - .overlay { - if isFocused { - contentShape.stroke(.compound.borderInteractivePrimary, lineWidth: 2) - } - } } @ViewBuilder