[gnome-shell-sass] calendar: Do not overload :active to mark selected day
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] calendar: Do not overload :active to mark selected day
- Date: Fri, 8 Jul 2016 14:09:46 +0000 (UTC)
commit d184e5c44ed824ab62fc35a4a8d75cda1f387206
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 8 02:04:56 2016 +0200
calendar: Do not overload :active to mark selected day
We currently use the :active pseudo class to mark the selected day
in the calendar. Whenever the selected date changes, the class is
added to the corresponding button and removed from all others.
However when the selected date doesn't change (i.e. when clicking
the already selected date), the buttons are not updated and the
use of the :active class conflicts with StButton's builtin handling
of the class - the class is removed on the button up event and the
button is deselected.
Fix this by simply using a different pseudo class.
https://bugzilla.gnome.org/show_bug.cgi?id=746867
_common.scss | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/_common.scss b/_common.scss
index a974988..e4446ab 100644
--- a/_common.scss
+++ b/_common.scss
@@ -885,7 +885,7 @@ StScrollBar {
margin: 2px;
border-radius: 1.4em;
&:hover,&:focus { background-color: lighten($bg_color,5%); }
- &:active {
+ &:active,&:selected {
color: lighten($selected_fg_color,5%);
background-color: $selected_bg_color;
border-color: transparent; //avoid jumparound due to today
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]