Skip to content

Latest commit

 

History

History
536 lines (353 loc) · 37.4 KB

CHANGELOG.md

File metadata and controls

536 lines (353 loc) · 37.4 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

9.4.1 (2024-05-15)

Bug Fixes

  • style: apply some default styles to field_group details/summary elements (6947971)
  • style: OCHA Services separator should inherit color (4801b3e)
  • style: pixel push for mandate logo (f9a4da5)

9.4.0 (2024-03-19)

Features

  • Non blocking font (3f58c71, RWR-416, CD-514)

Bug Fixes

  • Add an element id to the outer status messages wrapper div, so backstop can target it. (70427b3)
  • Mimic Drupal core themes on the status messges wrapper. (7a4f890)

9.3.4 (2024-02-26)

Bug Fixes

  • retain OCHA Services border on mobile (02f1f3b)
  • update example markup for fonts in README (d59c9e1)

9.3.3 (2024-02-22)

Bug Fixes

  • OCHA Services moved permanently to the footer - #463
  • security: jest-puppeteer@10 - #466
  • security: other npm updates

9.3.2 (2024-02-12)

Bug Fixes

  • set flex grow on last child to 0 to prevent full width when wrapping (6ab5675)

9.3.1 (2024-01-17)

Bug Fixes

  • perf: reduce CLS in Global Header (32f2323)
  • Change directory for select_a11y css after SDC reshuffle (1276855)

9.3.0 (2024-01-04)

Features

Bug Fixes

  • allow multiple versions of composer installers (2f0ca65)

9.2.3 (2024-01-02)

Bug Fixes

  • admin: nicer-looking unpublished styles (1bdb363)
  • load primary font in a non-blocking manner (25775b7)

9.2.2 (2023-10-26)

Bug Fixes

  • Focus styles for main navigation #441 CD-500
  • Twitter icon updated for CD Social Links #438 CD-502
  • remove duplicate announcement element from CD Social links #442
  • ci: run JS linter on base-theme PRs #437 CD-507
  • ci: run tests on sub-theme during PRs #440 CD-508

9.2.1 (2023-10-11)

Bug Fixes

  • accessibility: append logo to site name for image alt to avoid redundant alt (f204bde)
  • dx: offer more template suggestions for Paragraphs fields (33e645b)
  • tests: E2E tests updated and reorganized to improve use on individual websites (71132a6)
  • remove decimal list style for ol types to work for nested lists (e05d10f)

9.2.0 (2023-09-28)

Features

  • CD Disclosure component (fb2ad8b)

9.1.0 (2023-09-13)

Features

  • allow to insert the toggler button after the toggable element (018a236)

Bug Fixes

  • a11y: avoid aria-haspopup when using data-cd-insert-after attr (bdabca0)
  • auto-close dropdowns when they lose focus (be95645)
  • avoid breaking change for Disclosure pattern (4379567)
  • change scope of auto-close listener to improve UX (82fc78b)
  • collapse mandate to two lines in EN (6026098)
  • D10 updates to our 404/403 detection (5888b4d)
  • encode all params in CD Social Link URLs (994ee68)
  • reduce number of bubbled events (2873c02)
  • remove duplicate no-js class removal (701beb5)

9.0.1 (2023-07-10)

Bug Fixes

  • a11y: ensure tab order for OCHA Services matches visual order (f75c659)
  • security: stylelint upgraded (21ea859)

9.0.0 (2023-07-03)

⚠ BREAKING CHANGES

  • security: node.js minimum version has been raised from 16.x to 18.16.1 which is LTS at the time of commit. Node 16 will be EOL in a few months.
  • a11y: we have changed the markup required for the button that copies URLs to clipboard for social sharing. Both CSS and JS for the CD Social Links component have been changed to expect the new markup. See CD Demo for new markup.
  • remove --brand-logo-mobile-url due to complications with CSS aggregation and relative URLs (df1976a)

Features

  • a11y: disable animations/transitions when unwanted (1acbe62)
  • add label to CD Social Links (9abe056)

Bug Fixes

  • security: upgrade to node.js LTS 18.16.1 / npm 9.7.2 (a19c523)
  • a11y: disable animations/transitions of pseudo-elements (0372c84)
  • a11y: improve SR of copy-to-clipboard (261d6be)
  • a11y: remove redundant ARIA roles from sidebars (2bd1c33)
  • eliminate gap below card images (d8a1039)
  • prevent CD Form from applying outside <form> elements (017181d)
  • remember to unset custom logo for desktop (be4e0de)

8.2.0 (2023-06-16)

Features

  • specify mobile logo via --brand variable (2be5631)

Bug Fixes

  • a11y: add header to announce copyright notice (9f5bbb9)
  • a11y: announce Footer nav in footer (3a7f43f)
  • a11y: announce Header/Footer in same manner (459a33c)
  • a11y: announce Site Name and avoid announcing logo (e517abb)
  • a11y: announce Social nav in footer (14e44e7)
  • a11y: announce ToC as navigation (6a30be4)
  • a11y: better roles/attrs for announcing messages (b0e1e99)
  • a11y: ensure main elements have proper ARIA labels (da79e7a)
  • a11y: improve announcement of Help menu (bf53ba0)
  • a11y: improve screen reading of Account menu (232d969)
  • a11y: improve screen reading of language/help/user menus (0140cf8)
  • a11y: improve screen reading of main navigation (06f4990)
  • a11y: restore visually-hidden heading on Drupal messages (fc0be7f)
  • a11y: screen reader announces website header now (0dbbb6f)
  • a11y: screen reader improvements for pagination (f542ed3)
  • a11y: stop announcing redundant SVG data (3b07a5a)
  • a11y: style tabs with improved a11y/RTL (4b21cfa)
  • a11y: unique icons for every message type (637f1ff)
  • avoid printing hreflang on <li> tags (78d1ca6)
  • avoid printing XML processing instruction in HTML (5182fba)
  • CD ToC defaults to single-col with a new variant for columns (7d9bf90)
  • CSS refactor for CD Alert (79ce2c1)
  • remove invalid attributes from site logo (e968025)
  • simplify how to override logo from sub-theme (9f3dd4f)
  • use --brand colors in CD Figures (8534794)
  • Use drupal_static() instead of PHPs static keyword (d5fd880), closes #395
  • use same color as base-theme for primary--light (23b08c2)
  • W3 validator errors about duplicate id attributes (21b634c)

8.1.0 (2023-05-04)

Features

  • CD-462: add modern mustard cut to content layouts (dcb3d43)

Bug Fixes

  • add BEM element class to facets sidebar (6f6342a)
  • adjust clearfix pseudo (4b1d4f5)
  • adopt BEM for all sidebar markup/styles (6c35c88)
  • adopt brand colors for filters/facets (1eab45e)
  • adopt new BEM classnames in CD Block Title (e7c8404)
  • apply bgcolor to sidebars (c2e5760)
  • apply compact treatment to any heading in a sidebar (c3be34d)
  • BEN classname for CD Layout content area (aa2801f)
  • CD Layout content should grow to fill available space (59778c5)
  • clean up code, consolidate MQs, run linter (dc97159)
  • define CD Layout content flex-item after container (8bc49fd)
  • enforce proper flex order for second sidebar (420be92)
  • further simplify universal layout by removing CSS Vars (e8c71d2)
  • lock sidebars to 285px by default and add option for wider ones (3751da9)
  • prevent overflow on viewports 320 > 420 (ea3be48)
  • reapply sidebar styles using new BEM classes (ea9781e)
  • remove cd-block-title compact styles (7267212)
  • rename CD Page Layout container class (799248a)
  • shorter, proper BEM class for cd-layout (aaf24bc)
  • simplify flex layout for sidebars (84fb4e4)
  • split layouts into page/content and refactor page to flex (6c84806)
  • update cd-article Twig/HTML with new BEM classnames (716bd47)
  • use new layout CSS for faux node columns as well (1ebe1c1)

8.0.2 (2023-04-12)

Bug Fixes

  • adjust appearance of active trail on mobile/desktop (4296eb7)
  • adopt focus-visible state and restyle cosmetically (48f4f25)
  • alignment issues for footer copyright (1c98d48)
  • CD Footer mandate adjustments (2aa69a1)
  • clean up the footer focus styles (d5002c0)
  • logical properties for text-align in footer (7fbec82)
  • padding/position issues with various GH dropdowns (bffca47)
  • remove carets from Global Header dropdowns (24c98d1)
  • remove most RTL selectors from Global Header (9b808b0)
  • restore positioning of last-child nav dropdown (24acf71)
  • RTL cleanup for inline search (0229a3d)
  • show focus styles when Search is expanded (8251666)
  • update HR.info to be RWR (179c86d)
  • use logical properties for CD Nav (3e67b9e)
  • use the intended color for focus styles in base-theme (728fbe2)
  • z-index issue with Site Logo and OCHA Services dropdown (0c26b0e)

8.0.1 (2023-03-22)

Bug Fixes

  • cd-tabs: exclude tabs and styled lists from typography defaults (61cb937)
  • cd-typography: revert the disruptive display:block on img tags (04d768d)

8.0.0 (2023-02-16)

⚠ BREAKING CHANGES

  • sass: Remove Sass from base/sub-themes (27ada38)
  • fonts: removed system-ui font-family declarations and CSS Var --cd-font--system (6837729)
  • drupal: Drupal 9.5 is new minimum supported version. Drupal 8 no longer supported. (10b520e)
  • ie: remove IE10-specific fixes (3bdf787)
  • security: upgrade to node.js LTS 16.19.0 / npm 8.19.3 (97cf22c)

Bug Fixes

  • dir-agnostic positioning of Search button chevron (6356a46)
  • implement Google Fonts Roboto in HTML (64c7078)
  • layout bug in mandate (bf12306)
  • remove float variant from ToC and increase columns (2525297)
  • reset for lists we know will be styles (d52c8c2)
  • tests: remove sass-specific stylelint config from sub-theme (a320c2b)
  • simplify the component styling the Main Nav (4be4d65)
  • use flexbox for Search form layout (749fe8a)

7.4.1 (2023-01-10)

Bug Fixes

  • User menu works automatically now (compare to upgrade instructions for v7.4.0) (7272ab0)

7.4.0 (2022-12-21)

Features

  • Language Switcher conforms to UN Multilingual guidelines (bd4a2e1)

Bug Fixes

  • clean up User menu inside new Global Header (fbfcd5b)

7.3.0 (2022-11-16)

Features

Bug Fixes

  • avoid abbreviations in visually-hidden logo text (8bb19fc)
  • update typography based on coordination with SCB and RW (1fdf272), #341 #342

7.2.1 (2022-08-01)

Bug Fixes

  • comment out no-js rule with min-width on search form (ce41fdf)
  • comments and use transparent border (d50dd0e)
  • refine first and second level active menu item styles when javascript is disabled. (959f31c)
  • remove min-width from search form, in favour of element size (360878c)
  • remove separators from menu items for better visual cohesion when js is disabled (7e7ebdf)

7.2.0 (2022-07-04)

Features

  • cd-article: adopt --brand colors (456b401)
  • cd-bleed: adopt --brand colors (bc9dcf1)
  • cd-byline: adopt --brand colors (be9a448)
  • cd-card: adopt --brand colors (94265de)
  • cd-date: adopt --brand colors (3b6e1be)
  • cd-dropbutton: adopt --brand colors (204a3de)
  • cd-facets: adopt --brand colors (3b4a1b2)
  • cd-figure-list: adopt --brand colors (393115e)
  • cd-filter: adopt --brand colors (b744f94)
  • cd-footer: adopt --brand colors (6bfb536)
  • cd-form: adopt --brand colors (d3d0cd5)
  • cd-header: adopt --brand colors (3fea3aa)
  • cd-layout: adopt --brand colors (fdc5e54)
  • cd-link-list: adopt --brand colors (c0a16ce)
  • cd-page-title: adopt --brand colors (a53a8c8)
  • cd-pagination: adopt --brand colors (2dbc069)
  • cd-read-more: adopt --brand colors (26a5729)
  • cd-social-links: adopt --brand colors (5950744)
  • cd-styled-list: adopt --brand colors (2725ec2)
  • cd-table: adopt --brand colors (f2e5e35)
  • cd-teaser: adopt --brand colors (4ddd405)
  • cd-title-list: adopt --brand colors (f7a6fcf)
  • cd-toc: adopt --brand colors (ea9d241)
  • styleguide: adopt --brand colors (94a9489)

Bug Fixes

  • cd-form: adopt --brand colors (78a94c5)
  • namespace the embeds so they do not conflict with sub theme overrides (b79fc99)
  • remove --cd-primary and --cd-primary--dark CSS Vars (6476881)

7.1.0 (2022-06-29)

Features

  • Add theme settings to enable multilingual fonts via Drupal Libraries (9080e25)
  • visual indicator for unpublished nodes (9329a2f)

Bug Fixes

  • CD Button applies --brand colors as default (c91bb03)
  • remove pesky dash that was causing errors (d5742c4)
  • remove the new variable that was created in this branch (478253b)
  • update default --brand color in base-theme (84021df)

7.0.1 (2022-04-26)

Bug Fixes

  • a11y: add focusable and aria-hidden attributes to search submit button svg to remove from accessibility tree (cbc8782)
  • a11y: replace display none with max-width mixin for search button label to visually hide on mobile (df79789)
  • a11y: set text colour for visually hidden block headings to pass contrast (94da5fa)
  • add accurate unocha social media links to replace placeholder hashes (52cfb58)
  • add id to menu item anchors only if they have children to prevent duplicate ids on children (cc1cc81)
  • ensure proper ID hierarchy in help menu template (1565cdc)
  • ensure proper ID hierarchy in main menu template (6b33790)
  • ensure proper ID hierarchy in user menu template (e45b493)

7.0.0 (2022-04-21)

⚠ BREAKING CHANGES

  • sass: The sub-theme no longer uses Sass by default. All properties that were being overridden by sub-theme Sass are now folded into the base-theme, and instead you can use the css/brand.css file in the sub-theme to control your website branding.
  • icons: The icon SVG sprite is included via a template rather than a hook. If you've customized your icon sprite, you'll need to reconfigure the sub-theme to take advantage of the template instead of hook_preprocess_html().

Features

  • branding: Created a CSS file dedicated to site branding. You can control all site branding using five CSS Vars. (2224bf8)
  • icons: include icon svg sprite via a template rather than a hook (96cf1f7)

6.0.0 (2022-03-04)

⚠ BREAKING CHANGES

  • deps: All implementations that receive updates after this commit will need to support node.js 16.13.2 LTS or higher.
  • deps: stylelint@14 was adopted to keep up with Drupal 9 core, and the release had several major changes. It's possible that CD implementations which previously passed the linter will suddenly contain warnings or errors.

Features

  • forms: provide styling for common form elements (#254)
  • team: CD-000 add conventional commits package (#283)

Bug Fixes

  • on largest breakpoint, make room for potentially long site names (86d071c)
  • security: upgrade to node.js LTS 16.13.2 (3925e3d)

5.1.0 (2021-11-18)

Features

  • Add conventional commits package to automate CHANGELOG #283
  • Add theme functions and template overrides for Node, Taxonomy term and user edit forms
  • Add template overrides for the date field, dataset table, media library item, radio element, and the generic form element, to add classes and attach CD libraries
  • Expand form and field visual styles in cd-form component and add some basic layout rules for some elements like the Image and File fields.
  • Add cd-dropbutton component that extends core library, for Drupal actions like reverting and deleting revisions

Bug Fixes

  • Expand README section about testing
  • Expand form alter function to add CD button variant classes for Cancel and Delete buttons
  • Expand cd-form README to explain the use of CubeCSS and cd-flow component to adjust vertical rhythm for forms
  • security: Dependency updates for json-schema
  • security: Update xmldom package published to npm instead of github
  • security: Upgrade core-js

5.0.2 (2021-12-06)

Added

  • Add ch unit to unit-allowed-list stylelint configuration

Changed

  • Mention D9 in README
  • Fix some links in CONTRIBUTING.md

Removed

  • Remove unit-whitelist from stylelint configuration as it is deprecated
  • Remove plugin/no-browser-hacks from sub theme stylelint configuration. See issues #265. The base theme and sub theme are now tailored for >= Drupal 9.2

Security

  • Dependency updates for nth-check

5.0.1 (2021-09-16)

Security

  • Dependency update for set-value

5.0.0 (2021-09-13)

Added

  • Add admin and external link SVG icons to SVG icon sprite
  • Add and develop Pull Request template
  • Add Release Notes template to CONTRIBUTING.md
  • Add Arabic, French, and Spanish translation files for CD Header and Footer user interface strings
  • Add corejs version to babel config to prevent warnings during npm run e2e

Changed

  • Replace external js file with local file for CSS custom property ponyfill
  • Add missing accessibility-related attributes on SVG icons in the sub theme social media partial
  • node package dependencies and devDependencies reshuffle to speed up builds and ensure sass:build works when NODE_ENV=production

Removed

  • stylelint-no-browser-hacks plugin, also removed from D9. See #265

Fixed

  • Fix page title logic to limit the use of the page title to node canonical and preview pages
  • Use form_id in theme_suggestions_form_alter hook to provide proper theme suggestions

Security

  • Dependency updates for xmldom
  • Dependency updates for axios

4.1.1 (2021-07-23)

Fixed

  • Fix cd-filter component display for IE11 by reinstating previously removed rule to force display when CSS custom properties are not supported.

4.1.0 (2021-07-22)

Changed

  • Adjust image path in manifest file
  • Add details about Manifest and PWA to README
  • Add libraries for advanced and multilanguage fonts and README updates to describe usage.
  • Add CSS custom property to set the grid size for cd-image-grid component
  • Move browserconfig.xml into sub theme, and adjust image path.

Fixed

  • Fix Views views-view-grid.html.twig template override so it adds the cd-grid component only when the alignment setting from Views UI is set to "horizontal".

Removed

  • Remove Roboto Condensed and Slab fonts and Noto Sans for multilingual from being included by default in styles.css.
  • Remove grid partial previously included in styles.scss as it is not in use.

4.0.6 (2021-06-16)

Added

  • Theme hook suggestions for Views Display

Changed

  • Improve e2e tests to run in TravisCI
  • Move sample.sql for e2e tests in TravisCI outside of theme repo
  • Update URL for HID Services in OCHA Services menu and in tests
  • Component's Review continued, see components/README.md for status

Fixed

  • Focus link colour in cd-tags component
  • Cursor for cd-button component

Security

  • Dependabot Bump ws from 7.4.4 to 7.4.6
  • css-what as dev dependency for svg-sprite
  • trim-newlines for stylelint-no-browser-hacks