Skip to content

fix(dropdown): Align dropdown caret to right when block prop is present

Payton Burdette requested to merge fix-dropdown-block-caret into master

Aligns the gl-new-dropdown caret to the right when the component has the block prop present.

We currently don't have access the the button element in the dropdown. So I've wrote some more code in the mounted hook for applying classes based on props. I opened an MR to get around this against bootstrap-vue, it's merged but we can't use it until we upgrade BV to 2.9.0.

https://github.com/bootstrap-vue/bootstrap-vue/pull/5014

Before

Screen_Shot_2020-03-27_at_2.12.25_PM

After

Screen_Shot_2020-03-27_at_2.12.08_PM

Edited by Payton Burdette

Merge request reports