mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
refactor!: Improve ability to use CSS to style Blockly. (#8647)
* refactor!: Rename blocklyTreeIconClosed to blocklyToolboxCategoryIconClosed. * refactor!: Rename blocklyTreeLabel to blocklyToolboxCategoryLabel * refactor!: Rename blocklyToolboxDiv to blocklyToolbox. * refactor: remove unreferenced CSS classes. * refactor!: Remove the blocklyArrowTop and blocklyArrowBottom classes. * feat: Add a blocklyTextInputField class to text fields.
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
} from './field_input.js';
|
||||
import * as fieldRegistry from './field_registry.js';
|
||||
import * as parsing from './utils/parsing.js';
|
||||
import * as dom from './utils/dom.js';
|
||||
|
||||
/**
|
||||
* Class for an editable text field.
|
||||
@@ -49,6 +50,13 @@ export class FieldTextInput extends FieldInput<string> {
|
||||
super(value, validator, config);
|
||||
}
|
||||
|
||||
override initView() {
|
||||
super.initView();
|
||||
if (this.fieldGroup_) {
|
||||
dom.addClass(this.fieldGroup_, 'blocklyTextInputField');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure that the input value casts to a valid string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user