I have the following code:
%a.dropdown-toggle-nav.no-active(data-toggle='dropdown' href='')
Accounts
%i.icon-caret-down
%ul.dropdown-menu(role='menu')
...
Shown Below:
What I would like to do is separate out the anchor and caret functionalities. When I click on Accounts, it is an anchor tag brings me to a specific page and when I click on the caret, it toggles the dropdown element (staying on the same page).
I tried to put them in 2 separate Anchor Tags:
%a.dropdown-toggle-nav.no-active(href=accounts_requests_path)
Accounts
%a.dropdown-toggle-nav.no-active(data-toggle='dropdown' href='')
%i.icon-caret-down
%ul.dropdown-menu(role='menu')
But this puts the elements on 2 separate lines due to bootstrap css, and I want to keep the caret right next to the text. I thought about using absolute positioning to force the caret to be right next to the text, but there must be a better solution.
Any Ideas?