Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set attributes on b-dropdown-group header #7180

Open
aileen-r opened this issue Oct 5, 2023 · 0 comments
Open

Set attributes on b-dropdown-group header #7180

aileen-r opened this issue Oct 5, 2023 · 0 comments

Comments

@aileen-r
Copy link

aileen-r commented Oct 5, 2023

Is your feature request related to a problem? Please describe...

I am unable to set HTML attributes on the header element in b-dropdown-group.

Describe the solution you'd like

Similar to how b-dropdown offers the toggle-attrs prop, a header-attrs prop for b-dropdown-group that accepts an object which lets me set multiple attributes.

Describe alternatives you've considered

At the moment, I'm using b-dropdown-header separately. I would prefer to use b-dropdown-group for the accessibility benefits.

Additional context

My engineering team relies on data-test attributes for our automated test suites. We also use the title attribute a lot for providing extra context. This isn't the first BV component I've run into this issue with and it's one of the reasons we are starting to avoid using more BV in our component library.

It would be nice if exposing attributes was done by default in future. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant