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

Feature request - Add classes to auto-generated elements #1550

Closed
ghenry opened this Issue Jan 22, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@ghenry
Contributor

ghenry commented Jan 22, 2018

Hi all,

As per my chat in the slack channel:

Hi all, I'm trying to add an additional class to a template button slot on a dropdown -

This gets generated:
<a href="#" id="profileDropdown__BV_button_" aria-haspopup="true" aria-expanded="true" class="nav-link dropdown-toggle"><img src="blah"></a>

but I want to do this:

<a href="#" id="profileDropdown__BV_button_" aria-haspopup="true" aria-expanded="true" class="nav-link nav-link-profile dropdown-toggle"><img src="></a>

ie add nav-link-profile to that a href

I think a mixin or a way to get at these all these automatic class elements would be perfect. Video attached:

class_toggle.zip

ghenry added a commit to suretec/bootstrap-vue that referenced this issue Jan 23, 2018

@ghenry

This comment has been minimized.

Contributor

ghenry commented Jan 23, 2018

Hi all,

I'm done my best to put this in the right place, add docs and a test for it.
I feel this should be more generic though as there should be a prop to do this on every auto-generated child element etc. I've done what I need, now onto #1553

Thoughts?

Thanks,
Gavin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment