@@ -87,10 +87,10 @@ Blockly.Toolbox.prototype.showCategory_ = function (category_id) {
8787 * deriv-bot: Custom class names
8888 */
8989Blockly . Toolbox . Category . prototype . getMenuItemClassName_ = function ( selected ) {
90- const classNames = [ 'toolbox__item' , `toolbox__cat --${ this . id_ } ` ] ;
90+ const classNames = [ 'toolbox__item' , `toolbox__category --${ this . id_ } ` ] ;
9191
9292 if ( selected ) {
93- classNames . push ( 'toolbox__cat --selected' ) ;
93+ classNames . push ( 'toolbox__category --selected' ) ;
9494 }
9595
9696 return classNames . join ( ' ' ) ;
@@ -230,16 +230,16 @@ Blockly.Toolbox.Category.prototype.createDom = function () {
230230 this . item_ = el_item ;
231231
232232 if ( this . is_category_return_ ) {
233- const el_return_arrow = goog . dom . createDom ( 'div' , 'toolbox__cat -arrow toolbox__cat -arrow--back' ) ;
233+ const el_return_arrow = goog . dom . createDom ( 'div' , 'toolbox__category -arrow toolbox__category -arrow--back' ) ;
234234 ReactDOM . render ( < ArrowIcon className = 'arrow' /> , el_return_arrow ) ;
235235 el_item . appendChild ( el_return_arrow ) ;
236236 } else {
237- const el_colour = goog . dom . createDom ( 'div' , 'toolbox__cat -colour' ) ;
237+ const el_colour = goog . dom . createDom ( 'div' , 'toolbox__category -colour' ) ;
238238 el_item . appendChild ( el_colour ) ;
239239 }
240240
241241 const el_label = goog . dom . createDom ( 'div' , 'toolbox__label' , this . name_ ) ;
242- const el_toolbox_text = goog . dom . createDom ( 'div' , 'toolbox__cat -text' ) ;
242+ const el_toolbox_text = goog . dom . createDom ( 'div' , 'toolbox__category -text' ) ;
243243
244244 this . label_ = el_label ;
245245 el_toolbox_text . appendChild ( el_label ) ;
@@ -252,7 +252,7 @@ Blockly.Toolbox.Category.prototype.createDom = function () {
252252 el_item . appendChild ( el_toolbox_text ) ;
253253
254254 if ( this . has_child_category_ ) {
255- const el_category_arrow = goog . dom . createDom ( 'div' , 'toolbox__cat -arrow toolbox__cat -arrow--open' ) ;
255+ const el_category_arrow = goog . dom . createDom ( 'div' , 'toolbox__category -arrow toolbox__category -arrow--open' ) ;
256256 ReactDOM . render ( < ArrowIcon className = 'arrow' /> , el_category_arrow ) ;
257257 el_item . appendChild ( el_category_arrow ) ;
258258 } else if ( this . iconURI_ ) {
@@ -343,7 +343,7 @@ Blockly.Toolbox.Category.prototype.setColour = function(node) {
343343Blockly . Toolbox . CategoryMenu . prototype . createDom = function ( ) {
344344 const className = this . parent_ . horizontalLayout_ ?
345345 'toolbox__horizontal-category-menu' :
346- 'toolbox__cat -menu' ;
346+ 'toolbox__category -menu' ;
347347
348348 this . table = goog . dom . createDom ( 'div' , className ) ;
349349 this . parentHtml_ . appendChild ( this . table ) ;
@@ -369,7 +369,7 @@ Blockly.Toolbox.CategoryMenu.prototype.populate = function (domTree) {
369369
370370 if ( is_category ( ) ) {
371371 const row_class = childNode . getAttribute ( 'is_category_return' ) ?
372- 'toolbox__cat -return' :
372+ 'toolbox__category -return' :
373373 'toolbox__row' ;
374374 const el_row = goog . dom . createDom ( 'div' , { class : row_class } ) ;
375375
0 commit comments