mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +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:
@ -408,7 +408,7 @@ export class Input implements ComponentInterface {
|
||||
<input
|
||||
class="native-input"
|
||||
ref={input => this.nativeInput = input}
|
||||
aria-labelledby={labelId}
|
||||
aria-labelledby={label ? labelId : null}
|
||||
disabled={this.disabled}
|
||||
accept={this.accept}
|
||||
autoCapitalize={this.autocapitalize}
|
||||
|
Reference in New Issue
Block a user