diff --git a/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md b/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md index 362d4694e7b3cd4b63e725d1ce9ac32cf5b4696b..ee92c00cd55cdfb84cda78c6d7279cca6c0a24cf 100644 --- a/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +++ b/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md @@ -67,7 +67,7 @@ It's possible to close the disclosure dropdown programmatically by calling the ` `close` methods on the disclosure dropdown via a template ref. For example: ```js -this.$refs.disclosureDropdown.closeAndFocus() +this.$refs.disclosureDropdown.closeAndFocus(); ``` The `closeAndFocus` method is preferred in most cases, especially when triggering it from some action @@ -181,3 +181,28 @@ In this case the user is responsible for handling all events and navigation insi ## Split dropdown See [button group documentation](/docs/base-button-group--docs#split-dropdowns). + +## Container element type + +The disclosure dropdown automatically determines the appropriate container element type based on its +content: + +- When the dropdown contains only list items (`gl-disclosure-dropdown-item`, + `gl-disclosure-dropdown-group`, or direct `li` elements), it renders a semantic `