Skip to content

Commit

Permalink
Merge pull request #90 from SU-SWS/release-8.2.3
Browse files Browse the repository at this point in the history
8.2.3
  • Loading branch information
sherakama authored Jul 14, 2020
2 parents f6b7039 + 4d603cd commit a5e290e
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Stanford News

8.x-2.3
--------------------------------------------------------------------------------
_Release Date: 2020-07-13_

- D8CORE-2178, D8CORE-2180, D8CORE-2181: Event & news updates (#89) (c015fc3)
- D8CORE-2228: adding the nav tag so we get a landmarks menu in voiceover. (#86) (6f4f978)
- D8CORE-2070: changing the MS on the header for accelerants. (#88) (d76e913)
- D8CORE-2292: Added in the More news button (#87) (90b78ab)

8.x-2.2
--------------------------------------------------------------------------------
_Release Date: 2020-06-17_
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"drupal/views_block_filter_block": "^1.0",
"drupal/views_infinite_scroll": "^1.6",
"drupal/views_taxonomy_term_name_depth": "^6.0",
"su-sws/jumpstart_ui": "~8.1.0",
"su-sws/stanford_text_editor": "~8.1.0"
"su-sws/jumpstart_ui": "^8.1.0",
"su-sws/stanford_text_editor": "^8.1.0"
},
"extra": {
"enable-patching": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ content:
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
edit_mode: closed
add_mode: dropdown
form_display_mode: default
default_paragraph_type: stanford_wysiwyg
Expand Down Expand Up @@ -194,3 +194,4 @@ hidden:
promote: true
sticky: true
title: true

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ label: 'Publishing Date'
description: '<em>The “publishing date” will appear next to the “byline” below the headline and dek on the article page.</em>'
required: false
translatable: false
default_value: { }
default_value:
-
default_date_type: now
default_date: now
default_value_callback: ''
settings: { }
field_type: datetime

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ field_name: su_news_topics
entity_type: node
bundle: stanford_news
label: 'News Topics Terms'
description: 'Add all topic terms for your article here. Note, the top 3 topic terms in this list will be displayed on the list page teaser and at the top of the article page. The complete list of terms will be displayed at the end of the article page. You can rearrange the list using the drag-drop functionality'
description: 'Add all topic terms for your article here. Note, the top 3 topic terms in this list will be displayed on the list page teaser and at the top of the article page. The complete list of terms will be displayed at the end of the article page. You can rearrange the list using the drag-drop functionality. <a href="https://userguide.sites.stanford.edu/tour/news/how-add-edit-and-delete-news-topics-taxonomy" target="_blank">How to add, edit and delete news topics terms.</a>'
required: false
translatable: false
default_value: { }
Expand All @@ -26,3 +26,4 @@ settings:
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

24 changes: 24 additions & 0 deletions config/install/views.view.stanford_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,19 @@ display:
entity_field: type
plugin_id: bundle
sorts:
su_news_publishing_date_value:
id: su_news_publishing_date_value
table: node__su_news_publishing_date
field: su_news_publishing_date_value
relationship: none
group_type: group
admin_label: ''
order: DESC
exposed: false
expose:
label: ''
granularity: second
plugin_id: datetime
created:
id: created
table: node_field_data
Expand Down Expand Up @@ -1302,6 +1315,11 @@ display:
row: false
pager: false
css_class: false
use_more: false
use_more_always: false
use_more_text: false
link_display: false
link_url: false
style:
type: grid
options:
Expand Down Expand Up @@ -1379,6 +1397,11 @@ display:
block_category: 'News Lists (Views)'
block_description: 'News Cards - All Items'
css_class: 'stanford-news--cards stanford-news--cards-any'
use_more: true
use_more_always: false
use_more_text: 'See All News'
link_display: custom_url
link_url: /news
cache_metadata:
max-age: -1
contexts:
Expand Down Expand Up @@ -1999,3 +2022,4 @@ display:
- 'config:field.storage.node.su_news_publishing_date'
- 'config:field.storage.node.su_news_source'
- 'config:field.storage.node.su_news_topics'

2 changes: 1 addition & 1 deletion dist/css/news-list-item.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/news-vertical-teaser.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/scss/components/news-list-item/_list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

.section-stanford-news-views-header {
h1 {
@include modular-spacing('margin', 5 null);
@include modular-spacing('margin', 7 null);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
}
}
}

//Back to all news link
> .more-link {
@include modular-spacing('margin', 3 null 9 null);
text-align: center;

a {
@include button-primary;
}
}
}

// News Cards added in page as a paragraph.
Expand Down
2 changes: 1 addition & 1 deletion stanford_news.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Stanford news items and views.'
core_version_requirement: ^8.8 || ^9
package: Stanford
version: 8.x-2.2
version: 8.x-2.3
dependencies:
- allowed_formats:allowed_formats
- auto_entitylabel:auto_entitylabel
Expand Down
8 changes: 5 additions & 3 deletions templates/block/block--menu-block--news-topics.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@
{% set menu_class = 'news-topics__collapsable-menu' %}
{% set heading_id = (configuration.id ~ '-menu')|clean_id %}
{% set attributes = attributes.setAttribute('id', heading_id) %}
{% set button_label = ('button-label')|clean_id %}
{% set attributes = attributes.setAttribute('aria-labelledby', button_label) %}
{% set attributes = attributes.addClass(classes) %}

<div{{ attributes }}>
<nav{{ attributes }}>
{# Label. If not displayed, we still provide it for screen readers. #}
{% if not configuration.label_display %}
{% set title_attributes = title_attributes.addClass('visually-hidden') %}
{% endif %}
{{ title_prefix }}
<button{{ title_attributes.setAttribute('class', menu_class) }}>
<button{{ title_attributes.setAttribute('class', menu_class).setAttribute('id', button_label) }}>
{{ configuration.label }}
<span class="su-link su-link--jump"></span>
</button>
Expand All @@ -60,4 +62,4 @@
{% block content %}
{{ content }}
{% endblock %}
</div>
</nav>

0 comments on commit a5e290e

Please sign in to comment.