-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Four Kitchens Release - Sprint 45 (#1470)
* feat(shs-4945): remove tertiary-reversed-darken-10 from the color mapping files (#1467) * feat(shs-4946): remove spotlight-lighten-8 from the color mapping files and update reference to spotlight (#1468) * SHS-5498: Shortcut menu is not displaying in admin toolbar for site editors when they log in (#1465) * feat(shs-5498): open shortcuts toolbar menu by default on user login * feat(shs-5498): only open shortcuts if it's not already selected on login * feat(shs-5497): respect reduced motion for nav caret animation (#1469) * SHS-5504: Prevent JS error when link is absent in vertical linked cards (#1471) * chore(shs-5504): add prettier config to match eslint * SHS-5501: Add "Raised Cards" and "Uniform Height" options to Private Collection paragraph (#1466) * feat(shs-5501): add Uniform Height and Raised Cards fields to private collection component * feat(shs-5501): add template for private collection paragraphs
- Loading branch information
Showing
24 changed files
with
237 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
config/default/field.field.paragraph.hs_priv_collection.field_hs_collection_uh.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
uuid: 728a7bac-e9b6-425d-91ce-26144938d1bb | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_hs_collection_uh | ||
- paragraphs.paragraphs_type.hs_priv_collection | ||
id: paragraph.hs_priv_collection.field_hs_collection_uh | ||
field_name: field_hs_collection_uh | ||
entity_type: paragraph | ||
bundle: hs_priv_collection | ||
label: 'Uniform Height' | ||
description: 'Applies the uniform height styling to the raised cards. This option is decorative.' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: 1 | ||
default_value_callback: '' | ||
settings: | ||
on_label: 'On' | ||
off_label: 'Off' | ||
field_type: boolean |
23 changes: 23 additions & 0 deletions
23
config/default/field.field.paragraph.hs_priv_collection.field_raised_cards.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
uuid: 67d1228e-1ec8-46de-b358-b3b37cff9607 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_raised_cards | ||
- paragraphs.paragraphs_type.hs_priv_collection | ||
id: paragraph.hs_priv_collection.field_raised_cards | ||
field_name: field_raised_cards | ||
entity_type: paragraph | ||
bundle: hs_priv_collection | ||
label: 'Raised Cards' | ||
description: 'Applies the raised cards styling to views, cards, timelines and testimonials within a collection. This option is decorative. ' | ||
required: false | ||
translatable: false | ||
default_value: | ||
- | ||
value: 0 | ||
default_value_callback: '' | ||
settings: | ||
on_label: 'On' | ||
off_label: 'Off' | ||
field_type: boolean |
19 changes: 19 additions & 0 deletions
19
docroot/modules/humsci/hs_admin/assets/js/default_shortcuts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Drupal.behaviors.defaultShortcuts = { | ||
attach: function (context, settings) { | ||
if (!settings.user.uid) { | ||
// If the user is not logged in, clear the active toolbar tab ID. | ||
window.localStorage.removeItem('Drupal.toolbar.activeTabID'); | ||
return; | ||
} | ||
|
||
// Get the toolbar shortcuts toolbar button. Only users with the | ||
// 'access shortcuts' permission will have this button. | ||
const shortcutsItem = context.querySelector('#toolbar-item-shortcuts'); | ||
if (!window.localStorage.getItem('Drupal.toolbar.activeTabID') && shortcutsItem) { | ||
// If the tab ID is not set and the shortcuts toolbar button exists, click it. | ||
window.addEventListener('load', () => { | ||
shortcutsItem.click(); | ||
}); | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
hs_admin: | ||
version: VERSION | ||
css: | ||
base: | ||
assets/css/hs_admin.css: {} | ||
js: | ||
assets/js/hs_admin.js: {} | ||
|
||
default_shortcuts: | ||
js: | ||
assets/js/default_shortcuts.js: {} | ||
dependencies: | ||
- core/drupalSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.