Only run Compound tests when files are changed in Compound. (#4611)

* Only run Compound tests when files are changed in Compound.

* Fix warnings about missing spacing.

* Fix warnings about inner type shadowing.
This commit is contained in:
Doug
2025-10-10 14:30:51 +01:00
committed by GitHub
parent f403969f3f
commit db6aa06ec1
7 changed files with 16 additions and 13 deletions
@@ -168,9 +168,9 @@ struct CompoundIcon_Previews: PreviewProvider, TestablePreview {
}
static var accessibilityIcons: some View {
VStack {
VStack(spacing: 8) {
ForEach(DynamicTypeSize.allCases, id: \.self) { size in
HStack {
HStack(spacing: 8) {
CompoundIcon(\.userProfile, size: .xSmall, relativeTo: .compound.bodyXS)
CompoundIcon(\.userProfile, size: .small, relativeTo: .compound.bodySM)
CompoundIcon(\.userProfile, size: .medium, relativeTo: .compound.bodyLG)
@@ -219,7 +219,7 @@ struct CompoundIcon_Previews: PreviewProvider, TestablePreview {
}
static var buttons: some View {
VStack {
VStack(spacing: 8) {
Button { } label: {
Label { Text("Body Large") } icon: {
CompoundIcon(\.userProfile, size: .medium, relativeTo: .compound.bodyLG)