Problem/Motivation

Seven is overriding jquery ui theme.css. This is all fine, except that styles for the datepicker is missing. It's possible to use the datepicker, but it looks very bad and it's very hard to see what's going on.

Proposed resolution

Add datepicker styling to the Seven theme that in inline with the Seven styleguide

Remaining tasks

Review the patch

User interface changes

Datepicker styling changes on browsers that don't support the date input UI natively

API changes

None

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug/Task/Feature because ...
Issue priority Major because ... Critical/Not critical because ...
Unfrozen changes Unfrozen because it only changes CSS.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

googletorp’s picture

I'm not a designer, but added some styles that at least adds some improvements.

• I added background on the datepicker so it's easier to see what is going on.
• I fixed hover bug on the month prev/next icons so they don't "jump" on hover
• I made it easier to see which date is currently selected.
• I tried to follow the existing look and feel / styles

I've attached a screenshot of how the datepicker looks with the new styles.

Note: Core will use datepicker as fallback, but this is not added yet - for testing see with datepicker fallback see #2467351: Add jQuery UI datepicker for the Date element of the datetime field

googletorp’s picture

Status: Active » Needs review
googletorp’s picture

LewisNyman’s picture

Issue tags: +frontend, +CSS, +Usability

Nice, thanks for catching this. I will review the patched styles when I get a chance.

googletorp’s picture

@Lewis That sounds great.

Normally there is a border around the datepicker, but in the initial styles present, this was removed, so I didn't add it.

I do think that it would look nice, with a border around and make it more clear that it's a separate element. Since I'm not a designer mostly do backend, I just went with what was there already. But we might consider improving the design a little.

LewisNyman’s picture

Issue summary: View changes
FileSize
1.59 KB
1.21 KB
683.61 KB

Ok here's my version of the styling, using the colors and general principles of the Seven theme.

Annoyingly I had to overrride a lot of datepicker.css stuff but I think replacing it completely might introduce too many issues. I commented where I've had to override for later.

We can replace the icons in a follow up issue as well.

googletorp’s picture

@Lewis the patch looks very nice.

I re-added a thing you removed, which makes the icon still on hover. I also added styles for the cursor on icon hover.

LewisNyman’s picture

Issue summary: View changes

Ok great, now we just need someone else to review the styling before this is marked RTBC

Anonymous’s picture

The selected date could be bit more visible, as the bold only is quite hard to spot.

datepicker

googletorp’s picture

This can easily become an opinion based discussion on which color is best. How is this best resolved?

I personally think current patch is good as is and that it follows the look and feel of Seven.

LewisNyman’s picture

@b0unty I think your screenshot looks different to mine in #6? The styling has a background color and is bold. Maybe it was your cache?

Anonymous’s picture

@LewisNyman on your screenshot you have the current date selected, if you select any other date than the current date the situation happens as on my screenshot.

LewisNyman’s picture

Status: Needs review » Needs work

Ok true, we need to update the styling so ui-state-active styling is switched with .ui-state-highlight

LewisNyman’s picture

Anonymous’s picture

Issue summary: View changes
Status: Needs work » Needs review

Only local images are allowed.

Anonymous’s picture

And the patch itself with an interdiff

Status: Needs review » Needs work

The last submitted patch, 16: drupal-seven-jquery-datepicker-15.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: drupal-seven-jquery-datepicker-15.patch, failed testing.

googletorp’s picture

@b0unty The patch and interdiff you made is reversed, can you fix this and update the patch?

Anonymous’s picture

woops, re-try

Anonymous’s picture

Status: Needs work » Needs review
Anonymous’s picture

Issue tags: +drupaldevdays
GaëlG’s picture

Status: Needs review » Reviewed & tested by the community

This patch just works, thanks.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I manually tested the patch and it looks much better than HEAD. Committed 3289027 and pushed to 8.0.x. Thanks!

Thanks for adding the beta evaluation to the issue summary.

googletorp’s picture

@alexpott The link is broken and I don't see the patch in core. Did something happen during commit?

  • alexpott committed 3289027 on 8.0.x
    Issue #2467449 by googletorp, b0unty, LewisNyman: jQuery UI datepicker...
googletorp’s picture

So I caught up with webchick and Alexpott in IRC, so all is good now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.