diff --git a/Sources/ShellSpectroscopy/EDX/EDXFactorsSheet.swift b/Sources/ShellSpectroscopy/EDX/EDXFactorsSheet.swift index 3bba86f..5e13379 100644 --- a/Sources/ShellSpectroscopy/EDX/EDXFactorsSheet.swift +++ b/Sources/ShellSpectroscopy/EDX/EDXFactorsSheet.swift @@ -85,6 +85,9 @@ struct EDXFactorsSheet: View { } .padding(20) .frame(width: EDXLayout.factorsSheetWidth) + // A container of its own (as `edx.room`): without it the identifier lands on every child and hides theirs + // (`.source`, `.done`), MacEMUI#73. + .accessibilityElement(children: .contain) .accessibilityIdentifier("edx.factors") } } diff --git a/Sources/ShellSpectroscopy/EDX/EDXTypedKSheet.swift b/Sources/ShellSpectroscopy/EDX/EDXTypedKSheet.swift index e8588ed..a679ab7 100644 --- a/Sources/ShellSpectroscopy/EDX/EDXTypedKSheet.swift +++ b/Sources/ShellSpectroscopy/EDX/EDXTypedKSheet.swift @@ -66,6 +66,9 @@ struct EDXTypedKSheet: View { } .padding(20) .frame(width: EDXLayout.typedKSheetWidth) + // A container of its own (as `edx.room`): without it the identifier lands on every child and hides theirs + // (`.source`, `.done`), MacEMUI#73. + .accessibilityElement(children: .contain) .accessibilityIdentifier("edx.typedK") }