@@ -887,10 +887,15 @@ extension Label: GlobalAttributes, GlobalEventAttributes, GlobalAriaAttributes,
887887 return mutate ( ariadescribedby: . init( value, context: . tainted( . html) ) )
888888 }
889889
890+ @available ( * , deprecated, message: " Use the accessibilityDetail(_:) modifier instead. " )
890891 public func aria( details value: String ) -> Label {
891892 return mutate ( ariadetails: . init( value, context: . tainted( . html) ) )
892893 }
893894
895+ public func accessibilityDetail( _ id: String ) -> Label {
896+ return mutate ( ariadetails: . init( id, context: . tainted( . html) ) )
897+ }
898+
894899 @available ( * , deprecated, message: " Use the accessibilityDisabled(_:) modifier instead. " )
895900 public func aria( disabled value: Bool ) -> Label {
896901 return mutate ( ariadisabled: . init( value, context: . trusted) )
@@ -1869,10 +1874,15 @@ extension TextArea: GlobalAttributes, GlobalEventAttributes, GlobalAriaAttribute
18691874 return mutate ( ariadescribedby: . init( value, context: . tainted( . html) ) )
18701875 }
18711876
1877+ @available ( * , deprecated, message: " Use the accessibilityDetail(_:) modifier instead. " )
18721878 public func aria( details value: String ) -> TextArea {
18731879 return mutate ( ariadetails: . init( value, context: . tainted( . html) ) )
18741880 }
18751881
1882+ public func accessibilityDetail( _ id: String ) -> TextArea {
1883+ return mutate ( ariadetails: . init( id, context: . tainted( . html) ) )
1884+ }
1885+
18761886 @available ( * , deprecated, message: " Use the accessibilityDisabled(_:) modifier instead. " )
18771887 public func aria( disabled value: Bool ) -> TextArea {
18781888 return mutate ( ariadisabled: . init( value, context: . trusted) )
@@ -2429,10 +2439,15 @@ extension Button: GlobalAttributes, GlobalEventAttributes, GlobalAriaAttributes,
24292439 return mutate ( ariadescribedby: . init( value, context: . tainted( . html) ) )
24302440 }
24312441
2442+ @available ( * , deprecated, message: " Use the accessibilityDetail(_:) modifier instead. " )
24322443 public func aria( details value: String ) -> Button {
24332444 return mutate ( ariadetails: . init( value, context: . tainted( . html) ) )
24342445 }
24352446
2447+ public func accessibilityDetail( _ id: String ) -> Button {
2448+ return mutate ( ariadetails: . init( id, context: . tainted( . html) ) )
2449+ }
2450+
24362451 @available ( * , deprecated, message: " Use the accessibilityDisabled(_:) modifier instead. " )
24372452 public func aria( disabled value: Bool ) -> Button {
24382453 return mutate ( ariadisabled: . init( value, context: . trusted) )
@@ -2980,10 +2995,15 @@ extension Fieldset: GlobalAttributes, GlobalEventAttributes, GlobalAriaAttribute
29802995 return mutate ( ariadescribedby: . init( value, context: . tainted( . html) ) )
29812996 }
29822997
2998+ @available ( * , deprecated, message: " Use the accessibilityDetail(_:) modifier instead. " )
29832999 public func aria( details value: String ) -> Fieldset {
29843000 return mutate ( ariadetails: . init( value, context: . tainted( . html) ) )
29853001 }
29863002
3003+ public func accessibilityDetail( _ id: String ) -> Fieldset {
3004+ return mutate ( ariadetails: . init( id, context: . tainted( . html) ) )
3005+ }
3006+
29873007 @available ( * , deprecated, message: " Use the accessibilityDisabled(_:) modifier instead. " )
29883008 public func aria( disabled value: Bool ) -> Fieldset {
29893009 return mutate ( ariadisabled: . init( value, context: . trusted) )
0 commit comments