mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
* chore!: Rename editing CSS class to blocklyEditing (#8287) * further changes
This commit is contained in:
@@ -405,7 +405,7 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
|
||||
|
||||
const clickTarget = this.getClickTarget_();
|
||||
if (!clickTarget) throw new Error('A click target has not been set.');
|
||||
dom.addClass(clickTarget, 'editing');
|
||||
dom.addClass(clickTarget, 'blocklyEditing');
|
||||
|
||||
const htmlInput = document.createElement('input');
|
||||
htmlInput.className = 'blocklyHtmlInput';
|
||||
@@ -500,7 +500,7 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
|
||||
|
||||
const clickTarget = this.getClickTarget_();
|
||||
if (!clickTarget) throw new Error('A click target has not been set.');
|
||||
dom.removeClass(clickTarget, 'editing');
|
||||
dom.removeClass(clickTarget, 'blocklyEditing');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1154,7 +1154,7 @@ export class ConstantProvider {
|
||||
`}`,
|
||||
|
||||
// Editable field hover.
|
||||
`${selector} .blocklyEditableText:not(.editing):hover>rect {`,
|
||||
`${selector} .blocklyEditableText:not(.blocklyEditing):hover>rect {`,
|
||||
`stroke: #fff;`,
|
||||
`stroke-width: 2;`,
|
||||
`}`,
|
||||
|
||||
@@ -825,9 +825,9 @@ export class ConstantProvider extends BaseConstantProvider {
|
||||
|
||||
// Editable field hover.
|
||||
`${selector} .blocklyDraggable:not(.blocklyDisabled)`,
|
||||
` .blocklyEditableText:not(.editing):hover>rect,`,
|
||||
` .blocklyEditableText:not(.blocklyEditing):hover>rect,`,
|
||||
`${selector} .blocklyDraggable:not(.blocklyDisabled)`,
|
||||
` .blocklyEditableText:not(.editing):hover>.blocklyPath {`,
|
||||
` .blocklyEditableText:not(.blocklyEditing):hover>.blocklyPath {`,
|
||||
`stroke: #fff;`,
|
||||
`stroke-width: 2;`,
|
||||
`}`,
|
||||
|
||||
Reference in New Issue
Block a user