mirror of
https://github.com/google/blockly.git
synced 2026-06-02 09:20:06 +02:00
chore: chain Input.setAriaLabelProvider calls (#9933)
This commit is contained in:
@@ -279,13 +279,14 @@ const LISTS_CREATE_WITH = {
|
||||
// Add new inputs.
|
||||
for (let i = 0; i < this.itemCount_; i++) {
|
||||
if (!this.getInput('ADD' + i)) {
|
||||
const input = this.appendValueInput('ADD' + i).setAlign(Align.RIGHT);
|
||||
input.setAriaLabelProvider(
|
||||
Msg['INPUT_LABEL_LISTS_CREATE_WITH_ITEM'].replace(
|
||||
'%1',
|
||||
String(i + 1),
|
||||
),
|
||||
);
|
||||
const input = this.appendValueInput('ADD' + i)
|
||||
.setAlign(Align.RIGHT)
|
||||
.setAriaLabelProvider(
|
||||
Msg['INPUT_LABEL_LISTS_CREATE_WITH_ITEM'].replace(
|
||||
'%1',
|
||||
String(i + 1),
|
||||
),
|
||||
);
|
||||
if (i === 0) {
|
||||
input.appendField(Msg['LISTS_CREATE_WITH_INPUT_WITH']);
|
||||
}
|
||||
|
||||
@@ -885,10 +885,11 @@ const JOIN_MUTATOR_MIXIN = {
|
||||
// Add new inputs.
|
||||
for (let i = 0; i < this.itemCount_; i++) {
|
||||
if (!this.getInput('ADD' + i)) {
|
||||
const input = this.appendValueInput('ADD' + i).setAlign(Align.RIGHT);
|
||||
input.setAriaLabelProvider(
|
||||
Msg['INPUT_LABEL_TEXT_JOIN_ITEM'].replace('%1', (i + 1).toString()),
|
||||
);
|
||||
const input = this.appendValueInput('ADD' + i)
|
||||
.setAlign(Align.RIGHT)
|
||||
.setAriaLabelProvider(
|
||||
Msg['INPUT_LABEL_TEXT_JOIN_ITEM'].replace('%1', (i + 1).toString()),
|
||||
);
|
||||
if (i === 0) {
|
||||
input.appendField(Msg['TEXT_JOIN_TITLE_CREATEWITH']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user