Try adding buttonStyle so that a button is effectively selected and not the whole row (https://developer.apple.com/forums/thread/119541?page=2)
Button(action: {}, label: {
Text("Submit")
})
.buttonStyle(PlainButtonStyle())
.accessibilityIdentifier("submit_button")
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: