diff --git a/packages/components/demo/js/data-table-demo-expand-all-manager.js b/packages/components/demo/js/data-table-demo-expand-all-manager.js index b79aac6335c4..0275acfe7001 100644 --- a/packages/components/demo/js/data-table-demo-expand-all-manager.js +++ b/packages/components/demo/js/data-table-demo-expand-all-manager.js @@ -11,20 +11,20 @@ class DataTableDemoExpandRowAllManager extends mixin( handles ) { /** - * The row expand handler for data table "expand all" feature demo. + * The row expando handler for data table "expand all" feature demo. * @extends CreateComponent * @extends InitComponentByEvent * @extends Handles * @param {HTMLElement} element The element working as the button for data table "expand all" feature demo. * @param {Object} [options] The component options. - * @param {string} [options.selectorExpandHeader] The CSS selector to find the header expand button. - * @param {string} [options.selectorExpandCells] The CSS selector to find the row expand button. + * @param {string} [options.selectorExpandHeader] The CSS selector to find the header expando button. + * @param {string} [options.selectorExpandCells] The CSS selector to find the row expando button. * @param {string} [options.selectorExpandCellsExpanded] - * The CSS selector to find the row expand button with its expanded state. + * The CSS selector to find the row expando button with its expanded state. */ constructor(element, options) { super(element, options); - this.manage(on(element, 'click', this._handleClickRowExpand)); + this.manage(on(element, 'click', this._handleClickRowExpando)); } /** @@ -32,14 +32,14 @@ class DataTableDemoExpandRowAllManager extends mixin( * @param {Event} event The event triggering the creation. */ createdByEvent(event) { - this._handleClickRowExpand(event); + this._handleClickRowExpando(event); } /** * Handles `click` event on the row expand button. * @private */ - _handleClickRowExpand = () => { + _handleClickRowExpando = () => { if ( this.element.querySelectorAll(this.options.selectorExpandCells).length === this.element.querySelectorAll(this.options.selectorExpandCellsExpanded) @@ -66,10 +66,10 @@ class DataTableDemoExpandRowAllManager extends mixin( * and how {@linkcode DataTableDemoExpandRowAllManager.init .init()} works. * @member DataTableDemoExpandRowAllManager.options * @type {Object} - * @property {string} selectorInit The CSS selector to find the row expand handler for data table "expand all" feature demo. - * @property {string} [selectorExpandHeader] The CSS selector to find the header expand button. - * @property {string} [selectorExpandCells] The CSS selector to find the row expand button. - * @property {string} [selectorExpandCellsExpanded] The CSS selector to find the row expand button with its expanded state. + * @property {string} selectorInit The CSS selector to find the row expando handler for data table "expand all" feature demo. + * @property {string} [selectorExpandHeader] The CSS selector to find the header expando button. + * @property {string} [selectorExpandCells] The CSS selector to find the row expando button. + * @property {string} [selectorExpandCellsExpanded] The CSS selector to find the row expando button with its expanded state. * @property {string[]} initEventNames The event names that instantiates this component. */ static get options() { diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 8e6a87d2662a..f9f1f8dd71ea 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -59,7 +59,7 @@ Map { "open": Object { "type": "bool", }, - "renderExpand": Object { + "renderExpando": Object { "type": "func", }, "title": Object { @@ -1145,7 +1145,7 @@ Map { "className": Object { "type": "string", }, - "enableExpand": Object { + "enableExpando": Object { "type": "bool", }, "expandIconDescription": Object { @@ -1782,7 +1782,7 @@ Map { "className": Object { "type": "string", }, - "enableExpand": Object { + "enableExpando": Object { "type": "bool", }, "expandIconDescription": Object { diff --git a/packages/react/src/components/Accordion/AccordionItem.js b/packages/react/src/components/Accordion/AccordionItem.js index e846611cf569..dd63a1626cf3 100644 --- a/packages/react/src/components/Accordion/AccordionItem.js +++ b/packages/react/src/components/Accordion/AccordionItem.js @@ -15,7 +15,7 @@ import { useId } from '../../internal/useId'; import deprecate from '../../prop-types/deprecate.js'; const { prefix } = settings; -const defaultRenderExpand = (props) => - +
- {!enableExpand ? null : ( + {!enableExpando ? null : (