Skip to content

Commit c165348

Browse files
committed
$'syncing commit from monorepo. PR: 53, Title: FIO-10499 Fixed panel being incorrectly announced in readonly mode'
1 parent 485ff91 commit c165348

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/templates/bootstrap4/panel/form.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% if (ctx.component.collapsible) { %}
55
tabindex="0"
66
{% } %}
7-
role="button"
7+
role="{{ctx.readOnly ? 'presentation' : 'button'}}"
88
aria-expanded="{{ctx.component.collapsible ? !ctx.collapsed : true}}"
99
aria-controls="{{ctx.instance.id}}-{{ctx.component.key}}"
1010
ref="header"

src/templates/bootstrap5/panel/form.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% if (ctx.component.collapsible) { %}
55
tabindex="0"
66
{% } %}
7-
role="button"
7+
role="{{ctx.readOnly ? 'presentation' : 'button'}}"
88
aria-expanded="{{ctx.component.collapsible ? !ctx.collapsed : true}}"
99
aria-controls="{{ctx.instance.id}}-{{ctx.component.key}}"
1010
ref="header"

0 commit comments

Comments
 (0)