Remove - extra addClass & aria-label in appendColumnButton and restore aria-expanded="false" in clear method

pull/12727/head
Ayaan 2024-12-19 17:30:57 +05:30 zatwierdzone przez Matt Westcott
rodzic df8a6f219c
commit 1cbb1e8fb2
1 zmienionych plików z 1 dodań i 2 usunięć
client/src/entrypoints/contrib/typed_table_block

Wyświetl plik

@ -219,6 +219,7 @@ export class TypedTableBlock {
.text(this.blockDef.meta.strings.ADD_COLUMN)
.removeClass('button--icon text-replace white')
.removeAttr('aria-label')
.attr('aria-expanded', 'false')
.removeAttr('title');
// delete all body rows
@ -335,8 +336,6 @@ export class TypedTableBlock {
)
.addClass('button--icon text-replace white')
.attr('aria-label', this.blockDef.meta.strings.ADD_COLUMN)
.addClass('button--icon text-replace white')
.attr('aria-label', this.blockDef.meta.strings.ADD_COLUMN)
.attr('aria-expanded', 'false')
.attr('title', this.blockDef.meta.strings.ADD_COLUMN);