Skip to content

Commit

Permalink
Four Kitchens Release - Sprint 55 (#1584)
Browse files Browse the repository at this point in the history
* SHS-5661: Remove legacy fields (#1577)
* feat(SHS-5661): Remove paragraph field Overlay Color on banner image with text box
* feat(SHS-5661): Remove other references to the overlay field
* feat(SHS-5661): Add update hook to remove legacy field
* fix(SHS-5661): Fix linting error
* fix(shs-5661): remove hero-text-overlay variants and update viewmode config
* SHS-4929: Hide caption/credits on images in default views (#1578)
* feat(shs-4929): add new media view mode and update news default views
* feat(shs-4929):  update people default views
* feat(shs-4929):  update publications default views
* SHS-5675: Helping users avoid 'Table cell missing context (e.g. headings) A11y warning (#1579)
* feat(SHS-5675): Add default table header rows to new tables in CKEditor
* fix(SHS-5675): Fix linting error
* docs(SHS-5675): Add comments describing change and source of change.
* feat(SHS-5675): Update table heading color in CKEditor
* fix(shs-5675): change color variable for table headings
* fix(shs-5696): make normal the font style of blockquotes in wysiwyg (#1582)
* SHS-5693: Implementation: New Vertical Card option (#1581)
* feat(shs-5693): add view mode and and pattern for vertical button card
* feat(shs-5693): configure the Style field to use the new view mode with the right label.
* feat(shs-5693): add pattern into module preprocess function and update twig file
* feat(shs-5693): more implementations in vertical button card
* feat(shs-5693): implementations in vertical button card for colorful
* feat(shs-5693): update box shadow
* feat(shs-5693): update image position for colorful
* feat(shs-5953): use secondary button styles in traditional and fix space in colorful when there's no image
* fix(shs-5693): fix incorrect background color
  • Loading branch information
cienvaras authored Jul 29, 2024
1 parent 5812d76 commit 0462081
Show file tree
Hide file tree
Showing 29 changed files with 411 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ dependencies:
- field.field.paragraph.hs_hero_image.field_hs_hero_body
- field.field.paragraph.hs_hero_image.field_hs_hero_image
- field.field.paragraph.hs_hero_image.field_hs_hero_link
- field.field.paragraph.hs_hero_image.field_hs_hero_overlay_color
- field.field.paragraph.hs_hero_image.field_hs_hero_title
- paragraphs.paragraphs_type.hs_hero_image
module:
- allowed_formats
- color_field
- linkit
- maxlength
- media_library
Expand Down Expand Up @@ -54,13 +52,6 @@ content:
linkit_profile: default
linkit_auto_link_text: false
third_party_settings: { }
field_hs_hero_overlay_color:
type: color_field_widget_box
weight: 5
region: content
settings:
default_colors: '#00505C,#53284F,#175E54,#4D4F53,#5E3032'
third_party_settings: { }
field_hs_hero_title:
type: string_textfield
weight: 2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
uuid: b7b180a8-5e6f-4479-98d1-6a6e6982eb68
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.responsive_lazy
- field.field.media.image.field_media_image
- field.field.media.image.field_media_image_caption
- media.type.image
- responsive_image.styles.full_responsive
module:
- empty_fields
- field_formatter_class
- hs_field_helpers
- layout_builder
- responsive_image
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
_core:
default_config_hash: UHOBG3TcAwserLclcHcEOGnkPaJlP9n_tSpy7TmELFQ
id: media.image.responsive_lazy
targetEntityType: media
bundle: image
mode: responsive_lazy
content:
field_media_image:
type: responsive_image
label: hidden
settings:
responsive_image_style: full_responsive
image_link: ''
image_loading:
attribute: lazy
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
hs_field_helpers:
inline_contents: 0
weight: 0
region: content
hidden:
created: true
field_media_image_caption: true
name: true
search_api_excerpt: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies:
- field.field.paragraph.hs_hero_image.field_hs_hero_body
- field.field.paragraph.hs_hero_image.field_hs_hero_image
- field.field.paragraph.hs_hero_image.field_hs_hero_link
- field.field.paragraph.hs_hero_image.field_hs_hero_overlay_color
- field.field.paragraph.hs_hero_image.field_hs_hero_title
- paragraphs.paragraphs_type.hs_hero_image
module:
Expand Down Expand Up @@ -41,6 +40,5 @@ content:
hidden:
field_hs_hero_body: true
field_hs_hero_link: true
field_hs_hero_overlay_color: true
field_hs_hero_title: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies:
- field.field.paragraph.hs_hero_image.field_hs_hero_body
- field.field.paragraph.hs_hero_image.field_hs_hero_image
- field.field.paragraph.hs_hero_image.field_hs_hero_link
- field.field.paragraph.hs_hero_image.field_hs_hero_overlay_color
- field.field.paragraph.hs_hero_image.field_hs_hero_title
- paragraphs.paragraphs_type.hs_hero_image
module:
Expand All @@ -32,14 +31,7 @@ third_party_settings:
settings:
pattern:
field_templates: default
variant: _field
variant_field: field_hs_hero_overlay_color
variant_field_values:
default: 00505c
purple: 53284f
paloalto: '175e54'
coolgrey: 4d4f53
brown: '5e3032'
variant_field: field_hs_hero_body
regions:
image:
- field_hs_hero_image
Expand Down Expand Up @@ -123,5 +115,4 @@ content:
weight: 1
region: overlay_text
hidden:
field_hs_hero_overlay_color: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies:
- field.field.paragraph.hs_hero_image.field_hs_hero_body
- field.field.paragraph.hs_hero_image.field_hs_hero_image
- field.field.paragraph.hs_hero_image.field_hs_hero_link
- field.field.paragraph.hs_hero_image.field_hs_hero_overlay_color
- field.field.paragraph.hs_hero_image.field_hs_hero_title
- paragraphs.paragraphs_type.hs_hero_image
module:
Expand Down Expand Up @@ -47,6 +46,5 @@ content:
hidden:
field_hs_hero_body: true
field_hs_hero_link: true
field_hs_hero_overlay_color: true
field_hs_hero_title: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
uuid: 344ca5c0-4913-4495-bbbf-1b043b86d9b2
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.vertical_button_card
- field.field.paragraph.hs_postcard.field_hs_postcard_body
- field.field.paragraph.hs_postcard.field_hs_postcard_display
- field.field.paragraph.hs_postcard.field_hs_postcard_image
- field.field.paragraph.hs_postcard.field_hs_postcard_link
- field.field.paragraph.hs_postcard.field_hs_postcard_title
- paragraphs.paragraphs_type.hs_postcard
module:
- ds
- empty_fields
- field_formatter_class
- hs_field_helpers
- linkit
- stanford_media
- text
third_party_settings:
ds:
layout:
id: pattern_vertical_button_card
library: null
disable_css: false
entity_classes: all_classes
settings:
pattern:
field_templates: default
variant_field: field_hs_postcard_body
regions:
title:
- field_hs_postcard_title
image:
- field_hs_postcard_image
description:
- field_hs_postcard_body
button:
- field_hs_postcard_link
layout_builder:
enabled: false
allow_custom: false
_core:
default_config_hash: pD2JUVXvQBSgYIl6eg5c8YEnrxvftUnux2cz-3A-P9Y
id: paragraph.hs_postcard.vertical_button_card
targetEntityType: paragraph
bundle: hs_postcard
mode: vertical_button_card
content:
field_hs_postcard_body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: description
field_hs_postcard_image:
type: media_responsive_image_formatter
label: hidden
settings:
view_mode: caption_credit
link: false
image_style: postcard_vertical
remove_alt: 0
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
hs_field_helpers:
inline_contents: 0
weight: 1
region: image
field_hs_postcard_link:
type: linkit
label: hidden
settings:
trim_length: 80
url_only: false
url_plain: false
rel: '0'
target: '0'
linkit_profile: default
third_party_settings:
field_formatter_class:
class: decanter-button
hs_field_helpers:
inline_contents: 0
weight: 3
region: button
field_hs_postcard_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: title
hidden:
field_hs_postcard_display: true
search_api_excerpt: true
11 changes: 11 additions & 0 deletions config/default/core.entity_view_mode.media.responsive_lazy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 7f2edd8a-e200-49ed-96f8-fae0fd3e6886
langcode: en
status: true
dependencies:
module:
- media
id: media.responsive_lazy
label: 'Responsive Lazy'
description: ''
targetEntityType: media
cache: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: dd04cc00-b6ff-4ec0-96a6-c7e40a680be1
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.vertical_button_card
label: 'Vertical Button Card'
description: ''
targetEntityType: paragraph
cache: true

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ field_name: field_hs_postcard_display
entity_type: paragraph
bundle: hs_postcard
label: Style
description: 'Vertical: image above text; Vertical linked: image above text with linked overlay; Horizontal: image to left of text'
description: 'Vertical: image above text; Vertical linked: image above text with linked overlay; Horizontal: image to left of text; Vertical Button Card: image above text.'
required: true
translatable: false
default_value:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ settings:
-
value: token
label: 'Vertical Linked Card'
-
value: vertical_button_card
label: 'Vertical Button Card'
allowed_values_function: ''
module: hs_field_helpers
locked: false
Expand Down
2 changes: 0 additions & 2 deletions config/default/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ permissions:
- 'access content'
- 'download media'
- 'view field_hs_accordion_views'
- 'view field_hs_hero_overlay_color'
- 'view field_hs_text_area_bg_color'
- 'view field_media_embeddable_code'
- 'view field_paragraph_style'
- 'view humsci entity'
- 'view media'
- 'view own field_hs_accordion_views'
- 'view own field_hs_hero_overlay_color'
- 'view own field_media_embeddable_code'
- 'view the administration theme'
2 changes: 0 additions & 2 deletions config/default/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ permissions:
- 'use text format basic_html_without_media'
- 'use text format webform_default'
- 'view field_hs_accordion_views'
- 'view field_hs_hero_overlay_color'
- 'view field_hs_text_area_bg_color'
- 'view field_media_embeddable_code'
- 'view field_paragraph_style'
- 'view humsci entity'
- 'view media'
- 'view own field_hs_accordion_views'
- 'view own field_hs_hero_overlay_color'
- 'view own field_media_embeddable_code'
- 'view the administration theme'
Loading

0 comments on commit 0462081

Please sign in to comment.