Bug 506345 - Unable to click calendar days that are not part of current month
Summary: Unable to click calendar days that are not part of current month
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 6.4.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-06-29 14:32 UTC by social.bobsled816
Modified: 2025-08-11 13:45 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description social.bobsled816 2025-06-29 14:32:17 UTC
SUMMARY
In the digital clock widget with calendar integrated I can't click on days shown for previous or next month without click the arrows around "today" to switch the visible month. This adds an extra click for example when i want to check my events for Tuesday July 1st which is in 2 days.

STEPS TO REPRODUCE
1. Open digital clock widget with calendar events integrated
2. Try to click on a day in the next month (which is in the same week as current week)


OBSERVED RESULT
The mouse click does nothing. The days are "greyed" showing they are outside of the current month but should still be clickable in this view.

EXPECTED RESULT
Any day visible in the widget should be clickable

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora KDE (Kinoite)
KDE Plasma Version: 6.4.1
KDE Frameworks Version:  6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Comment 1 Akseli Lahtinen 2025-07-01 08:37:43 UTC
This was caused by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5614
Comment 2 Nate Graham 2025-07-01 15:01:17 UTC
I'm afraid this was an intentional change for accessibility made in Plasma 6.4.1.

You see, if the days for other months have super light text but remain clickable, they don't achieve WCAG AA for text readability. However if we disable clickability for those days, then they aren't considered at all for WCAG purposes, so we pass. And passing this is important for https://invent.kde.org/plasma/plasma-desktop/-/issues/149#note_1237256
Comment 3 David Edmundson 2025-07-01 15:27:12 UTC
The change may be intentional, the bug remains. It acts unexpectedly and is a regression. There's lots of other solutions to explore.

As for the original change I don't think it's enough to begin with.

>Must have a contrast ratio of at least 7:1, except for the following: 
>Incidental
>    Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or >that are part of a picture that contains significant other visual content, have no contrast requirement.

It's not an "inactive user interface component" just because it's not clickable. WCAG would apply to someone reading this comment in bugzilla which isn't clickable.
Comment 4 Nate Graham 2025-07-01 17:25:16 UTC
(In reply to David Edmundson from comment #3)
> The change may be intentional, the bug remains. It acts unexpectedly and is
> a regression. There's lots of other solutions to explore.
> 
> As for the original change I don't think it's enough to begin with.
> 
> >Must have a contrast ratio of at least 7:1, except for the following: 
> >Incidental
> >    Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or >that are part of a picture that contains significant other visual content, have no contrast requirement.
> 
> It's not an "inactive user interface component" just because it's not
> clickable. WCAG would apply to someone reading this comment in bugzilla
> which isn't clickable.

It is; see https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html under "Inactive User Interface Components".
Comment 5 Louis Moureaux 2025-07-01 18:34:22 UTC
Some calendars use alternating background colours to identify months. Using black text on a darker background, or a lighter background for the current month, could solve the contrast issue without functionality loss.
Comment 6 Nate Graham 2025-08-07 17:20:47 UTC
Closing again because the current UI is intentional and implemented the way it is for legal reasons.

There are of course other potential legal solutions (like using different background colors for days outside of the current month) as long as those preserve adequate contrast if they're interactive. However, we currently don't use background colors here at all; it just inherits the background of the popup. So that would be a larger UI redesign.

…Which is fine. I'm open to a UI redesign to make this even better. But that's somewhat outside the scope of a bug report.
Comment 7 Louis Moureaux 2025-08-09 14:19:34 UTC
So there is a design flaw that, together with reading a law to the letter, leads to functionality loss. Where should the flawed design be reported, if not here?
Comment 8 Nate Graham 2025-08-11 13:45:16 UTC
A new bug report to request a different design (e.g. background-based differentiation for days outside the current month) would be appropriate.

I'm not against that, if we can make it look good.