Skip to content

Commit

Permalink
chore!: Rename editing CSS class to blocklyEditing (google#8287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-fleury committed Jul 11, 2024
1 parent d355b56 commit 6b23f74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/field_input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion core/renderers/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;`,
`}`,
Expand Down
4 changes: 2 additions & 2 deletions core/renderers/zelos/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;`,
`}`,
Expand Down

0 comments on commit 6b23f74

Please sign in to comment.