Skip to content

Draft: feat(GlDisclosureDropdown): Add item content component

Olena Horal-Koretska requested to merge Simplify-disclosure-custom-content into main

What does this MR do?

Add a new component GlDislosureDropdownItemContent that will wrap custom item content in the button or link that is correctly styled and has the tabindex set to -1. This is done for better DevX. Previously, when providing custom content to the default item slot, developers had to reset button/link styles which proved to be cumbersome and prone to errors. Here is one example and here is another one.

References #2135 (closed)

Edited by Olena Horal-Koretska

Merge request reports

Loading