Skip to content

Releases: civictheme/monorepo-drupal

Fixed issues with no-js class breaking Collapsible.

15 Feb 09:16
Compare
Choose a tag to compare

Major cleanup of components, lists and Drupal preprocessing

15 Feb 08:26
Compare
Choose a tag to compare

Major cleanup of components, lists and Drupal preprocessing.

This version brings stable API - all Drupal fields were re-assessed, renamed
and/or removed.

🧩 Component library

New features

  • Added Time base component. 🚀🚀🚀
  • Fully refactored all Cards from scratch to rely on other components. 🚀🚀🚀
  • Fully refactored Icon to support inline SVG icons: icons now inherit color and size of the container. 🚀🚀🚀
  • Refactored Popover to act as a dropdown container and have a trigger link
  • Refactored Single filtered and added Apply button. Added content slots
  • Simplified Group filter to bare minimum, Added Apply button and removed custom Ajax auto-submit support (still works with Ajax views).
  • Updated Primary navigation expand triggers to appear centred for when items are multi-lined.
  • Added Tag List component and added to Promo and Event cards.
  • Added Subtitle field to the Promo card.
  • Refactored Link to use Icon and allowed to be used as an icon-only component.
  • Added a size to the Item list.

Fixes

  • Removed grouping of components in Storybook. This makes it easier to navigate between components.
  • Fixed Chip properties to correctly handle multiple state
  • Fixed Chip example event export.
  • Fixed field mappings and styles for Form element
  • Fixed field mappings for Fieldset
  • Fixed input position in Radio
  • Fixed input position in Checkbox
  • Updated Collapsible to be always expanded when no JS.
  • Fixed above link button on List to be a regular size and added content slots.
  • Fixed bottom spacing of the last item of the last Basic content component.
  • Fixed Site section style in Banner.
  • Fixed stripe variables and Message and Alerts icon colours.
  • Fixed Icon sizes on components.
  • Updated Link and Content Link component’s CSS to use word-break to break content.
  • Fixed TOC jumping when clicked.
  • Removed broken storybook-addon-pseudo-states plugin.
  • Removed Description List component.
  • Removed DropdownFilter in favour of Popover
  • Refactored Campaign component.
  • Unified calls to ct-breakpoint() mixin.
  • Fixed missing attributes prop to the Item grid.
  • Fixed links direction in the Service card.
  • Fixed A11Y in mobile menu to communicate the state.
  • Created deprecations system and a SASS header to provide build information.
  • Updated CSS variables generation to support numeric values and opacity.
  • Added separate styles for Scrollspy.
  • Fixed typo in 'elipsis' in Pager.
  • Updated margin resets to happen in a single place for multiple components.
  • Added vertical highlight mixin and refactored components.

💧 Drupal theme

New features

  • Added Event content type layout and fixed view modes. Event is now a first-class citizen.
  • Added a list of Topics displayed by default on Page content. This can be hidden with Hide tags checkbox.
  • Added icon for external links in content.
  • Added a capability to expose internal properties as data attributes in DOM useful for migrations.
  • Added support for SVG in WYSIWYG.
  • Added centralised last preprocessor to convert CSS classes in attributes to modifier_class variable.
  • Added sorting by Promoted value in the Automated list.
  • Added 'none' value for Vertical Spacing and made it required for all components.
  • Added no-js CSS class to <html> attributes.
  • Added default minimal styling for all text in Drupal.
  • Added links processing to tables.
  • Added feature opt-out mechanism. Some of the features can be opted out to use standard Drupal functionality
  • Added drush civictheme:stylesheet Drush command to forcefully re-generate stylesheet (before, it would be lazy-generated only on the next page load).
  • Added Short Date and Time date formatter.

Fixes

  • Fixed color filters applied twice after being set via Drush. 🚀🚀🚀
  • Refactored Automated list, tests and generated content. 🚀🚀🚀
  • Refactored Automated list filters. 🚀🚀🚀
  • Refactored all Cards preprocessors. 🚀🚀🚀
  • Updated field mappings for all components (every field was checked for name, type, validity etc). 🚀🚀🚀
  • Replaced Summary field with Content on non-Cards paragraphs. This field should only be used on Cards paragraphs.
  • Removed Size field from cards.
  • Fixed fields processing on Manual list.
  • Fixed breadcrumb not listing the last item as a current page on non-GovCMS profile.
  • Fixed image as icon on Navigation card.
  • Fixed Accordion panels to be closed when editing.
  • Fixed Manual list to have cards closed when editing.
  • Fixed Tags list not having bottom vertical space by default.
  • Fixed Slider slides to be closed when editing.
  • Fixed Slider to allow multiple links and Date field.
  • Fixed 'Showing x of y' is not hidden for Automated list with limited results.
  • Removed obsolete node view modes.
  • Fixed theme config reset key stored in config.
  • Fixed <body> tag not having correct classes.
  • Fixed Basic Content component field mapping.
  • Fixed Image preprocessing.
  • Fixed Banner field mapping.
  • Added preprocessing for Content component.
  • Updated field mapping in Slider.
  • Replaced print_r with var_export in colour validation exception.
  • Updated Event card Image field to not be compulsory.
  • Updated Event card to use Topics (plural) field.
  • Updated Mobile Navigation block to make Trigger text a required field.
  • Fixed Slider Slide default image position value set to Left.
  • Removed obsolete Link field from Slider.
  • Fixed Next Step content field.
  • Updated Callout link title to be required.
  • Moved Hide tags into Appearance group on Page content type.
  • Removed obsolete Topic field from Subject reference card.
  • Fixed background color for Table, Attachment, Dropdown filter and Campaign components.
  • Updated Banner block component to add Type and Featured image fields.
  • Removed teaser view mode as it was never used.

⚙ Platform

  • Default content:

    • Fixed content profiles content.
    • Fixed Color Palettes in content profiles.
    • Fixed missing footer menus on Corporate profile.
  • Stack and workflow:

    • Updated config of PHPCS and PHPMD to lint super fast (3.5min to 15 seconds)
    • Refactored all existing Behat tests to remove obsolete tests and converted JS tests into non-JS for speed.
    • Updated some tests to be compatible with a sub-theme -> increased test coverage (they used to run only for a base theme).
    • Added content generation for Event
    • Fixed content generation for Page and added missing variations for some components (see https://nginx-php.master.civictheme-source.lagoon.salsa.hosting/generated-content/components).
    • Fixed phpcs exclusion script unit test to allow to be ran outside of docker.
    • Updated project readme to have only relevant information.
    • Removed Styleguide in favour of generated content.
  • CI:

    • Added Library test runner as GH action. This tests that each page of Storybook can load.
    • Included basetheme tests into subtheme tests runs.

🧨 Breaking changes:

  • Fields renamed:
    • field_c_p_fill_width -> field_c_p_list_fill_width
    • field_c_p_column_count -> field_c_p_list_column_count
  • Removed field_c_p_topic field in favour of existing field_c_p_topics (plural) field.
  • Replaced field_c_n_date with field_c_n_date_range in Event.
  • Replaced Summary field with Content on non-Cards paragraphs. This field should only be used on Cards paragraphs.
  • Replaced field_c_n_date with field_c_n_date_range in Event.
  • Removed Size field from cards.
  • Removed Topic field from Subject reference card.
  • Removed functionality:
    • Removed DropdownFilter component and mappings in Drupal. View filters now appear in Popover component).
    • Removed custom Drupal ajax views override that was providing AJAX autosubmit functionality as it was not working correctly with already broken Single and Group filters.
    • Removed exporting of colours CSV from the Library.
  • Topics now appear under content for Page unless Hide tags is checked. If Topics should be hidden within existing content such updated should be performed manually.

Updated Admin UI and lots of fixes

23 Nov 00:31
Compare
Choose a tag to compare

🧩 Component library

New features

None

Fixes

  • Fixed several components not using CSS variables:
    • Accordion
    • Attachment
    • Basic Content
    • Breadcrumbs
    • Callout
    • Campaign
    • Collapsible
    • Content Link
    • Dropdown Filter
    • Event card
    • Figure
    • Form Element
    • Layout
    • Link
    • Logo
    • Map
    • Navigation card
    • Next steps
    • Paragraph
    • Popover
    • Promo card
    • Publication card
    • Quote
    • Search
    • Service card
    • Subject card
    • Table
    • Table of Contents
    • Tabs
    • Tag
    • Tooltip
  • Fixed Alert icon to be inline with title.
  • Fixed Back to Top right spacing.
  • Fixed Banner title content wrap when feature image is not provided.
  • Fixed Content Link component not being used in content for links.
  • Fixed Dropdown Filter horizontal scroll.
  • Fixed Figure caption image.
  • Fixed Group Filter layout.
  • Fixed Header border color.
  • Fixed Icon sizes used in mobile not being as per design.
  • Fixed Layout vertical spacing added when a side navigation is present.
  • Fixed List component props and layout, including double vertical spacing.
  • Fixed Map component layout.
  • Fixed Map iFrame CSS class.
  • Fixed Mobile Navigation Trigger colors and icon.
  • Fixed Navigation spacing.
  • Fixed Pagination styling.
  • Fixed Promo and Footer background color for Dark theme.
  • Fixed Promo card arrow not being aligned to the right side.
  • Fixed Select not showing a dropdown icon.
  • Fixed Skip Link to use Link component.
  • Fixed Slider not respecting 'with background' setting.
  • Fixed Slider slide not having a background color applied.
  • Fixed Table of Contents border to be on all sides for an active state.
  • Fixed Table of Contents styles.
  • Fixed Tabs attribute "aria-controls".
  • Fixed visibility mixin not resetting dimensions on hover.

💧 Drupal theme

New features

  • Update editorial UI (form display) for Page and Event content types to be more-content oriented.
  • Added configurable summary character limit for cards.
  • Added Theme selection in config for Skip Link component.
  • Updated Navigation Card to have the image shown as an icon.
  • Added 'Use Color Selector' setting and additional information about colors. This allows to completely disable color injection.
  • Added general information section to theme settings.
  • Added schema, migration mapping and validation for Page fields in civictheme_migrate module.
  • Added centralised theme configuration manager. This is a first part of OOP-based approach to theme code.

Fixes

  • Event:
    • Fixed missing dates to the Event node view.
    • Fixed Locations on events to allow non-geographical locations and updated cardinality of Location field to allow multiple locations.
    • Fixed fields shown on Event content page.
  • Cards:
    • Fixed Navigation card not accepting Icon media.
    • Fixed Summary field to be optional in Promo, Event, Navigation and Publication cards.
  • Theme settings:
    • Fixed non-color fieldsets being overridden in theme settings.
    • Fixed CSS variables file exclusion for the sub-themes that do not implement 'libraries-override' in .info file.
    • Fixed Drush command not enabling Color Selector.
    • Fixed Logo upload and validation in theme settings.
    • Updated content provision logic to provision ether from module or theme config.
    • Improved performance of saving of the theme settings form and fixed erroneous configuration items being saved to the theme settings configuration.
    • Fixed default content provisioning for when civictheme is an active theme.
  • Fixed missing site branding block used for site slogan.
  • Fixed Manual List name to be Manual list.
  • Fixed Header theme applying to the Side navigation.
  • Fixed Banner not allowing to inherit values from the global block.
  • Added missing icon assets to the theme and starter kit.

⚙ Platform

  • Default content:
    • Added Government and Higher Education content profiles:
    • Updated Default and Corporate content profiles.
    • Refactored civictheme_content to read configuration from provided configuration files.
    • Fixed generated content being dependent on real content.
    • Fixed content export script not removing content before export and not exporting all media.
  • Stack and workflow:
    • Updated how DEV and MASTER are built to use Default content profile instead of provisioning from settings.
    • Updated SKIP_SUBTHEME_ACTIVATION variable to have a consistent name with all other SKIP_* variables.
    • Skip content generation in the PR env.
    • Removed Solr container.
    • Fixed names of generated entities to start with Generated.
  • CI:
    • Removed Renovate and disabled DLC in CI.
    • Added more jobs in CI to build 9 sites: D9 and D10 with different profiles.

Color mapper in Drupal

24 Oct 09:49
Compare
Choose a tag to compare

196074922-0b9ceaca-ccdb-45e1-a9a4-87d766d9462c

196075055-ce2cbb83-2f9e-4f84-aeee-d82c809b7bfe (1)

🧩 Component library

New features

  • Added support for color mapping via CSS variables.
  • Updated all components to use consistent color theme styles.
  • Added Campaign component.

Fixes

  • Fixed HTML lists numbering.
  • Fixed visuals in multiple components:
    • Attachment
    • Breadcrumbs
    • Callout
    • Event card
    • Group filter
    • List
    • Navigation card
    • Next steps
    • Next steps
    • Pager
    • Promo card
    • Publication card
    • Quote
    • Slider
    • Subject card
  • Fixed .visually-hidden not resetting width.
  • Fixed menu external link visuals.
  • Fixed TOC width on mobile.

💧 Drupal theme

New features

  • Added color configuration through theme settings or Drush command.
  • Resolved compatibility with Drupal 10.
  • Added civictheme_admin module used for editorial enhancements.
  • Added Campaign component integration.

Fixes

  • Fixed missing theme dependencies.
  • Removed editorial transitions as they were not used in content types.
  • Removed image field from Next steps component paragraph.
  • Removed Task card component paragraph.
  • Removed obsolete fields from Attachment component paragraph.
  • Removed obsolete fields from Manual list component paragraph.

⚙ Platform

  • Renamed cs_core to civictheme_dev an updated dependencies.
  • Removed stage_file_proxy.
  • Fixed theme install process to run in a correct order.
  • Added administrator role as an optional dependency.
  • Added smoke tests to all CI jobs.
  • Updated CI to run multiple profiles:

Cursor_and_Pipelines_-_salsadigitalauorg_civictheme_source

First stable release!

21 Sep 05:46
Compare
Choose a tag to compare

Designs can be found at https://civictheme.io/figma

Component library

New features

  • Added Particle element and updated all measurements to use it.

  • Added new components:

    • Content link
    • Item grid
    • Item list
    • Field description
    • Field message
    • Paragraph
    • Popover
    • Quote
  • Removed components:

    • Directional link.
    • Progress indicator
    • Password strength indicator
  • Added Typography page

  • Added font discovery for font weights.

  • Extracted Chip component from Button component

  • Added blend mode support for Background component.

  • Update Logo component to support 2 images.

  • Refactored Navigation, Primary navigation and Secondary navigation into unified Navigation component.

  • Added dropdown and drawer (mega-menu) support for Navigation component.

  • Updated Tooltip component to use Popper library.

Fixes

  • Moved several component into new places within the atomic structure.
  • Renamed several components:
    • Listing component to List
    • Basic filter to Single filter.
    • Large filter to Group filter.
    • Content to Layout
    • Link list component.
  • Updated multiple components:
    • Table
    • Checkbox
    • Label
    • Heading
    • Icon
    • Cards
    • Pagination
    • Breadcrumbs
    • Textarea
    • Textfield
    • Skip link
    • Social links
    • Side navigation
    • Slider
    • Tooltip
    • Tabs
    • Back to Top
    • Select
    • Promo
    • Video player
    • Button
    • Tag
    • Radio
  • Removed share link field from Video Player component.
  • Removed 'extra-large' and 'extra-small' button sizes.
  • Fixed misnamed background files name as per figma.
  • Fixed Mobile navigation icons and missing parent item
  • Added Skip to content for Side navigation
  • Updated Event and Promo card components to use link component for title.
  • Updated Status to be Information in the Alert and Message components.
  • Fixed Layout classes for mobile.
  • Removed the rogue CSS class in Layout component.
  • Fixed Icon handling of theme style color.

Drupal theme

New features

  • Added Manual list component and removed Card container in favour of Item grid component.
  • Added Automated list component and refactored to use Item grid component.
  • Added integration with Navigation settings for Primary and Secondary navigation.
  • Updated Logo to support 2 images + configuration in Drupal
  • Removed share link field from Video Player integration.
  • Added Quote component integration.
  • Added selection of the background image blend mode for Banner block and Page content type.
  • Added Table integration.
  • Updated Spacing to Vertical spacing fields.

Fixes

  • Fixed incorrect paragraph card names.
  • Fixed external link configuration.
  • Fixed external link icon not being applied within menus.
  • Fixed tab order.
  • Fix bug in theme settings for external new window.

Tooling

New features

  • Added Styleguide for Drupal component validation.
  • Added helpers to easily render paragraphs and block on Styleguide

0.53.0

30 Aug 11:58
Compare
Choose a tag to compare

Drupal theme

New features

  • Added "Last updated date" as a custom date for Page content type. (#536)
  • Added Site section name to the Banner component and Site sectiions vocabulary. (#544)
  • Added Linkit profile for content and media entities. (#571)
  • Added uploading of logo images in theme settings. (#566)
  • Added links processing to identify internal and external links. (#556)
  • Added support for empty string as alt attribute value on image component. (#555)
  • Added a cpability to allow to select custom views and filters from UI in Listing component. (#554)

Fixes

  • Fixed missing settings schema and refactored settings form.
  • Fixed unstyled Drupal elements without blocks. (#505)
  • Fixed missing Size field on Navigation card paragraph. (#569)
  • Fixed exposed Listing filters not updating when filter values are updated. (#565)
  • Fixed footer background image not being applied.
  • Fixed double inclusion of ajax libraries.
  • Updated Page, Event, Alerts content type fields descriptions and unified UI.
  • Updated fields and descriptions on Listing component.
  • Refactored 'theme' variables to use constants.
  • Fixed listing showing duplicated nodes when tagged with the same term.
  • Fixed Storybook path in theme settings to point to the current theme.
  • Updated Reference slide to have a theme field. (#531)
  • Fixed Card theme being applied inconsistent in the Listing component (#526)
  • Fixed ajax-views.js being included twice. (#525)
  • Fixed missing menu block values added on build of a child theme.
  • Fixed order in Tabs tabs components. (#582)

Component library

New features

  • Added font smoothing. (#557)
  • Added allowing to select card type in card container in Storybook. (#540)
  • Added Webform component to Storybook and add theme/spacing/background. (#522)

Fixes

  • Fixed breadcrumb to show actual parent value on mobile. (#568)
  • Fixed cards in the Card container/Listing to be of the same height within the same row and align tags to the bottom. (#547)
  • Updated Background component to use semi-transparent theme-independent images. (#553)
  • Fixed attributes on Video component. (#533)
  • Fixed icon not being aligned with the link.
  • Fixed mobile Side Navigation menu collapsing on grand-parents. (#581)

Tooling

New features

  • Added PHPCS exclusions for JS scripts to bypass linting in GovCMS projects. (#539)
  • Updated starter kit theme script to remove example components. (#541)

Fixes

  • Fixed mobile navigation menus in the default content.
  • Updated content generation fields.
  • Updated listing examples blocks.
  • Fixed duplicated content blocks issue when default content is enabled. (#518)

0.52.1

08 Jul 00:54
Compare
Choose a tag to compare

Drupal theme

New features

  • Added a Banner title override field.
  • Added hide breadcrumb option in banner. (#510)
  • Added show last updated field. (#485)
  • Added offset for in-page links, so they are not hidden behind sticky header.
  • Added an ability to override Banner breadcrumb from page.
  • Added menu tree manipulators to fix mobile menu order. (#460)
  • Added the ability to hide sidebar content from the page.

Fixes

  • Fixed Inconsistency in how paths are specified in theme configuration. (#513)
  • Fixed ‘Link’ menu field does not get updated immediately on mobile (#514)
  • Fixed broken exposed form of Views with CivicTheme (#507)
  • Fixed Reference content does not render in the Slider component (#509)
  • Fixed card theme and background in the Listing component (#504)
  • Fixed Side Navigation menu Missing parent links.
  • Fixed external icons in the Mobile navigation links.
  • Fixed external icons in the Footer navigation links.
  • Fixed logos not handling public stream wrappers as value in theme settings. (#467)

Component library

New features

  • Implemented Search component (simple).
  • Added a colour map CSV link to Storybook. (#477)
  • Updated side navigation so that it collapses.

Fixes

  • Fixed Accordion Dark colour does not apply to content inner region. (#515)
  • Fixed Publication Card content cut-off when column count is more. (#512)
  • Fixed Callout CTA when without link text. (#508)
  • Fixed date missing in Promo Card with Event CT.
  • Fixed HTML tags rendering for Promo Card with Event CT
  • Fixed missing space handler in basic content component.
  • Fixed video share link to use provided text if available. And default text for transcript if non link text provided.
  • Converted video custom links to use button atoms.
  • Converted map custom links to use button atoms.
  • Fixed position of header top 3 region. (#489)
  • Updated Button atom to restrict with regular size icon only.
  • Updated link component to use hidden_text.

Tooling

New features

  • Added a capability to provision content from the theme settings. (#503)

Fixes

  • Moved config updater script to the starter kit dir. (#459)

New name

05 May 05:04
1ff0264
Compare
Choose a tag to compare

Changed

  1. Renamed repos:
  2. Renamed modules and themes:
    • cd_core -> cs_core
    • civic -> civictheme
    • civic_govcms -> civictheme_govcms
    • civic_default_content -> civictheme_content
    • civic_default_content_demo -> civictheme_content_default
    • civic_default_content_corporate -> civictheme_content_corporate
  3. Renamed fields and bundles:
    • civic_* ->civictheme_*
    • civic_card_event_reference -> civictheme_card_event_ref
    • civic_card_navigation_reference -> civictheme_card_navigation_ref
    • civic_card_subject_reference -> civictheme_card_subject_ref
    • civic_card_reference_promo -> civictheme_card_promo_ref
  4. Renamed variables:
    • CIVIC_DEFAULT_CONTENT_TYPE -> CIVICTHEME_CONTENT_TYPE
  5. Updated documentation to contain references to module repos.