Closed Bug 1844911 Opened 2 years ago Closed 1 year ago

Options in <datalist> for input type="text" not highlighted when selected/hovered over in Thunderbird extension popup

Categories

(Thunderbird :: Add-Ons: Extensions API, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED FIXED
125 Branch

People

(Reporter: jhh, Assigned: john)

Details

Attachments

(5 files)

Attached file popup.html

Steps to reproduce:

Created a thunderbird extension with a text input field whose values could be selected from options specified by a <datalist>.

Actual results:

When pressing arrow down in the text input field, the options are shown but the currently selected one (or the one currently being hovered over) are not highlighted: no visual cue is given which is the currently selected option.

Expected results:

The currently selected or how red over option should be highlighted, like options in a <select>

Component: Untriaged → Add-Ons: Extensions API
Attached image popup.JPG
Attached image action-popup.jpg

I cannot confirm this on Windows with Thunderbird 115.8.0.

I attached two screenshots, one for an action popup and one for a popup window, and the selected entry changes when pressing up/down arrows keys.

What is your environment? Can you still reproduce this with 115.8.0?

I'm on MacOS and TB 115.8.0 and for me the bug still exist. Did you create the popup elements with a <datalist>?

I was using your popup.html. That should be sufficient to reproduce the issue, right?

Can you state your exact version of MacOS?

Yes it should. I am on MacOS 14.2.1 (Sonoma).

Attached file 1844911.xpi

Reproducer add-on for review.

MacOS seems to use the checked attribute instead of the selected attribute for
menu items. This patch extends the existing CSS rule to act on both. It also loads
the icons.css and colors.css into the extension popup.

Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 125 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/00fed70cf1ff
Fix CSS for checked menuitem on MacOS. r=aleca,micahilbery

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: