fix(form-core): add aria-hidden=true to the graphic element of the choiceInput (#2447)

This commit is contained in:
gerjanvangeest 2025-01-20 09:46:10 +01:00 committed by GitHub
parent 43b694e7f8
commit 795237d19e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ui': patch
---
[form-core] add aria-hidden=true to the graphic element of the choiceInput

View file

@ -171,7 +171,9 @@ const ChoiceInputMixinImplementation = superclass =>
render() { render() {
return html` return html`
<slot name="input"></slot> <slot name="input"></slot>
<div class="choice-field__graphic-container">${this._choiceGraphicTemplate()}</div> <div class="choice-field__graphic-container" aria-hidden="true">
${this._choiceGraphicTemplate()}
</div>
<div class="choice-field__label"> <div class="choice-field__label">
<slot name="label"></slot> <slot name="label"></slot>
</div> </div>