The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Disabled select element shown as enabled?, Element still not clickable.
CharlesEF
post Nov 12 2021, 05:06 PM
Post #1


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Hi All,

I'm wondering if anyone else has noticed this. I use FF 94.0.1 and see that disabled select elements are shown as enabled (no grey background), but still not clickable. Enabled select elements are shown as disabled (with grey background), but are clickable. It appears MS Edge does the same.

Is this the new normal? Or, have I gone blind?


Thanks for any feedback,

Charles
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 12 2021, 07:08 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



That sounds odd. Are you seeing this on simple static HTML, without any CSS applied? This is how my browsers look:

CODE
<select>
<option>enabled</option>
</select>

<select disabled="disabled">
<option>disabled</option>
</select>


FF 94.01
enabled: gray text and background
disabled: somewhat lighter gray text and background

Edge 95.0.x
enabled: black text on white background
disabled: light gray text on light gray background

Pale Moon and K-Meleon do use white background on disabled SELECTs though.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Nov 12 2021, 07:32 PM
Post #3


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



I used your code to create a static HTML page, no CSS or Javascript. I see 2 select drop downs side by side. The 1st select shows 'enabled' but it does have a gray background. The 2nd select shows 'disabled' but has no gray background. This was using FF 94.0.1

MS Edge v95.0.1020.44 appears to show the enabled select, or maybe the gray is lighter, I can't tell with my bad eyes for sure. The disabled select has no gray background, that I can see.

Could this be because my Windows is a preview version? I can't upgrade to Win11 because it doesn't support multi-core processors yet.

This post has been edited by CharlesEF: Nov 12 2021, 07:35 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 12 2021, 08:00 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(CharlesEF @ Nov 13 2021, 01:32 AM) *

The disabled select has no gray background, that I can see.

You're not using the same light gray for the browser default background color by chance?

QUOTE
Could this be because my Windows is a preview version?

No idea, I'm still on Win10, no preview anything.

Tried to attach a screenshot, but now I couldn't get neither PNG, JPG nor GIF to work. wacko.gif

User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Nov 12 2021, 08:33 PM
Post #5


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Even when I use my program I don't overwrite the browser defaults, as far as background color. I've always seen a disabled select with a gray background, until now.

Since I live alone I can't just ask someone to look at it. I guess I'll just wait until someone visits and ask them to look at it.

Thanks for the feedback.

This post has been edited by CharlesEF: Nov 12 2021, 08:34 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 04:04 PM