mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix!: Renamed the blocklyToolboxContents CSS class to blocklyToolboxCategoryGroup (#8384)
This commit is contained in:
@@ -136,7 +136,7 @@ export class ToolboxCategory
|
||||
'rowcontentcontainer': 'blocklyTreeRowContentContainer',
|
||||
'icon': 'blocklyToolboxCategoryIcon',
|
||||
'label': 'blocklyTreeLabel',
|
||||
'contents': 'blocklyToolboxContents',
|
||||
'contents': 'blocklyToolboxCategoryGroup',
|
||||
'selected': 'blocklyTreeSelected',
|
||||
'openicon': 'blocklyTreeIconOpen',
|
||||
'closedicon': 'blocklyTreeIconClosed',
|
||||
|
||||
@@ -58,7 +58,7 @@ export class CollapsibleToolboxCategory
|
||||
|
||||
override makeDefaultCssConfig_() {
|
||||
const cssConfig = super.makeDefaultCssConfig_();
|
||||
cssConfig['contents'] = 'blocklyToolboxContents';
|
||||
cssConfig['contents'] = 'blocklyToolboxCategoryGroup';
|
||||
return cssConfig;
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ export class Toolbox
|
||||
*/
|
||||
protected createContentsContainer_(): HTMLDivElement {
|
||||
const contentsContainer = document.createElement('div');
|
||||
dom.addClass(contentsContainer, 'blocklyToolboxContents');
|
||||
dom.addClass(contentsContainer, 'blocklyToolboxCategoryGroup');
|
||||
if (this.isHorizontal()) {
|
||||
contentsContainer.style.flexDirection = 'row';
|
||||
}
|
||||
@@ -1111,13 +1111,13 @@ Css.register(`
|
||||
-webkit-tap-highlight-color: transparent; /* issue #1345 */
|
||||
}
|
||||
|
||||
.blocklyToolboxContents {
|
||||
.blocklyToolboxCategoryGroup {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.blocklyToolboxContents:focus {
|
||||
.blocklyToolboxCategoryGroup:focus {
|
||||
outline: none;
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user