fix!: Rename editing CSS class to blocklyEditing (#8287) (#8301)

* chore!: Rename editing CSS class to blocklyEditing (#8287)

* further changes
This commit is contained in:
Gabriel Fleury
2024-07-22 19:38:40 -03:00
committed by GitHub
parent 348313a1b6
commit e29d7abfdb
3 changed files with 5 additions and 5 deletions

View File

@@ -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');
}
/**

View File

@@ -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;`,
`}`,

View File

@@ -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;`,
`}`,