Date CSS not added for all Form API elements

Created on 11 July 2019, over 5 years ago
Updated 21 April 2023, over 1 year ago

#2447277: Performance: replace sylesheets[all][] with attached changed the way that the date_api/date.css is added to the page. Instead of adding it everywhere globally, it uses #attached to add it selectively.

However, now the date_api/date.css file is not being added when a date select field is used on the page - in both Field API fields as well as custom Form API elements. This causes the date select fields to stack instead of displaying inline. See attached before/after screenshots.

🐛 Bug report
Status

Needs work

Version

2.0

Component

User interface

Created by

🇺🇸United States m.stenta

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • 🇮🇳India kunal_sahu Karnataka

    I am writing some testcases . Please review my MR. Thanks

  • @kunal_sahu opened merge request.
  • 🇺🇸United States raywright

    Just curious if anyone was successful in getting in applying the date.css to select fields? I have applied the patch as it stands but my select date select fields (month, day, year) still stack on top of each other rather than float as the CSS styles them.

Production build 0.71.5 2024