View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20645Bug reportsTheme editorpublic2026-09-10 14:12
ReporterFreda Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version7.0.x 
Summary20645: Fruity theme hides selected value in Bootstrap Select dropdown on hover
Description

When using a Bootstrap dropdown (Type: !) in the Fruity theme, the selected answer becomes invisible while the mouse cursor is hovering over the dropdown.

The selected value is still present in the DOM and the Bootstrap Select component retains the correct value. However, the value is not visually displayed while the dropdown button is in its hover/focus/active state.

As soon as the cursor is moved away from the dropdown, the selected value becomes visible again.

(attached is a video of the behavior and a .lss file)

Steps To Reproduce

Steps to reproduce

  • Use a survey with the Fruity theme.
  • Add a question using a Bootstrap dropdown question type.
  • Open the dropdown and select an option.
  • Keep the cursor over the dropdown.
  • Observe that the dropdown appears to contain an empty space instead of displaying the selected value.
  • Move the cursor to another question.
  • The selected value becomes visible again.

Expected result

The selected value should remain visible when the Bootstrap Select control is hovered, focused, or active.

Actual result

The selected value disappears visually while the dropdown is hovered.

The value remains present in the HTML, for example:

<button type="button"
class="btn dropdown-toggle border"
role="combobox"
title="3">
<div class="filter-option">
<div class="filter-option-inner">
<div class="filter-option-inner-inner">3</div>
</div>
</div>
</button>

The selected option is also correctly marked:

<a role="option"
class="dropdown-item selected active"
aria-selected="true">
<span class="text">3</span>
</a>

Cause

The Fruity theme contains the generic rule: (theme.css)

.btn:focus, .btn:hover {
color: #fff;
}

Bootstrap Select uses a .btn.dropdown-toggle for the dropdown control. Consequently, the generic Fruity .btn:hover rule also applies to the Bootstrap Select control and changes its text color when hovered.

This causes the selected value to become visually hidden against the dropdown background.

Suggested fix

The generic Fruity .btn:hover / .btn:focus styling should not override the text color of Bootstrap Select dropdown controls.

A scoped rule for .bootstrap-select > .dropdown-toggle, or an adjustment to the generic .btn styling, should prevent the selected value from becoming invisible.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)https://github.com/LimeSurvey/LimeSurvey/pull/5261
I will donate to the project if issue is resolvedNo
Browser
Database type & version.
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-08-28 11:24

developer   ~85516

The generic Fruity .btn:hover / .btn:focus styling should not override the text color of Bootstrap Select dropdown controls.

I don't think it must be there : i check with removing.

DenisChenu

DenisChenu

2026-08-28 11:35

developer   ~85517

Fixed lss (Really Fruity)

DenisChenu

DenisChenu

2026-08-28 11:35

developer   ~85518

https://github.com/LimeSurvey/LimeSurvey/pull/5261

(CI issue not related)

DenisChenu

DenisChenu

2026-09-02 09:18

developer   ~85547

I test a mastyer merge for the CI issue.

eusweisker

eusweisker

2026-09-04 13:55

manager   ~85567

Successfully tested on bug/20645èFruityBTNcss

DenisChenu

DenisChenu

2026-09-07 12:11

developer   ~85597

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40248

LimeBot

LimeBot

2026-09-10 14:12

administrator   ~85637

Fixed in Release 7.0.15+260910

Related Changesets

LimeSurvey: master ea13bade

2026-09-07 12:10

DenisChenu

Committer: GitHub


Details Diff
Fixed issue 20645: Fruity theme hides selected value in Bootstrap Select dropdown on hover (05261) Affected Issues
20645
mod - themes/survey/fruity/css/theme.css Diff File

Issue History

Date Modified Username Field Change
2026-08-10 17:33 Freda New Issue
2026-08-10 17:33 Freda File Added: Screen Recording 2026-08-10 at 17.30.47.mov
2026-08-10 17:33 Freda File Added: limesurvey_survey_269588.lss
2026-08-10 18:00 tibor.pacalat Assigned To => DenisChenu
2026-08-10 18:00 tibor.pacalat Status new => assigned
2026-08-28 11:24 DenisChenu Note Added: 85516
2026-08-28 11:24 DenisChenu Bug heat 0 => 2
2026-08-28 11:34 DenisChenu Complete LimeSurvey version number (& build) . => https://github.com/LimeSurvey/LimeSurvey/pull/5261
2026-08-28 11:35 DenisChenu Note Added: 85517
2026-08-28 11:35 DenisChenu File Added: limesurvey_survey_269588-reallyfruity.lss
2026-08-28 11:35 DenisChenu Status assigned => ready for code review
2026-08-28 11:35 DenisChenu Note Added: 85518
2026-08-31 11:38 DenisChenu Assigned To DenisChenu => gabrieljenik
2026-09-01 23:33 gabrieljenik Assigned To gabrieljenik => tibor.pacalat
2026-09-01 23:33 gabrieljenik Status ready for code review => ready for testing
2026-09-02 09:18 DenisChenu Note Added: 85547
2026-09-04 13:55 eusweisker Assigned To tibor.pacalat => eusweisker
2026-09-04 13:55 eusweisker Status ready for testing => ready for merge
2026-09-04 13:55 eusweisker Note Added: 85567
2026-09-04 13:55 eusweisker Bug heat 2 => 4
2026-09-07 12:11 DenisChenu Changeset attached => LimeSurvey master ea13bade
2026-09-07 12:11 DenisChenu Note Added: 85597
2026-09-07 12:11 DenisChenu Assigned To eusweisker => DenisChenu
2026-09-07 12:11 DenisChenu Status ready for merge => resolved
2026-09-07 12:11 DenisChenu Resolution open => fixed
2026-09-10 14:12 LimeBot Note Added: 85637
2026-09-10 14:12 LimeBot Status resolved => closed
2026-09-10 14:12 LimeBot Bug heat 4 => 6