mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(datetime, input, textarea): remove aria-labelledby when there is no adjacent ion-label (#23211)
* fix(datetime, input, textarea): remove aria-labelledby when there is no adjacent ion-label * Update core/src/components/input/test/a11y/input.spec.ts Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com> * Update core/src/components/textarea/test/a11y/textarea.spec.ts Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com> * Update core/src/components/datetime/test/a11y/datetime.spec.ts Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com> * remove hard-coded label, fix whitespace Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
@ -363,7 +363,7 @@ export class Textarea implements ComponentInterface {
|
||||
>
|
||||
<textarea
|
||||
class="native-textarea"
|
||||
aria-labelledby={labelId}
|
||||
aria-labelledby={label ? labelId : null}
|
||||
ref={el => this.nativeInput = el}
|
||||
autoCapitalize={this.autocapitalize}
|
||||
autoFocus={this.autofocus}
|
||||
|
Reference in New Issue
Block a user