mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Revert "Add a visible custom focus ring to the standard button style"
This reverts commit 3f2434c94761877b96fe5bc2e9acc9dfc2b8db2a.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user