Skip to content

Commit

Permalink
Make the student nav filter selector not split toggle.
Browse files Browse the repository at this point in the history
A split toggle is implemented with two buttons.  A button with the text
(in this case the filter name) and a button with the caret for the
dropdown menu.  However, `student-nav-filter-selector` div only has one
button and does not have the second button for the caret.  This causes
issues with the border of the button.  Since the filter button has the
`dropdown-toggle-split` class the `btn-group > .btn.dropdown-toggle-split`
selector applies and the rounded borders on the right are removed.  That
makes the button look wrong.

This just removes incorrect `dropdown-toggle-split` class that is
causing the problem and makes it so the button is displayed correctly.
  • Loading branch information
drgrice1 committed Nov 11, 2024
1 parent 22b6dbf commit b75d1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/ContentGenerator/GatewayQuiz/nav.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="btn-group student-nav-filter-selector">
<%= link_to $filter ? $filters->{$filter}[0] : maketext('Showing all tests') => '#',
id => 'testSelectorFilter',
class => 'btn btn-primary dropdown-toggle dropdown-toggle-split',
class => 'btn btn-primary dropdown-toggle',
role => 'button',
data => { bs_toggle => 'dropdown' },
'aria-expanded' => 'false' =%>
Expand Down

0 comments on commit b75d1c8

Please sign in to comment.