Skip to content

Commit

Permalink
9.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Jun 23, 2023
2 parents 54afe45 + 62cf020 commit b8f02db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Stanford Profile

9.2.8
--------------------------------------------------------------------------------
- Don't replace attributes on menu link items.

9.2.7
--------------------------------------------------------------------------------
- Moved the help region below the brand bar.
Expand Down
2 changes: 1 addition & 1 deletion soe_profile.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'SOE Profile'
description: 'Jumpstart Website Profile'
version: 9.2.7
version: 9.2.8
type: profile
project: Jumpstart
core_version_requirement: ^9 || ^10
Expand Down
4 changes: 1 addition & 3 deletions themes/stanford_basic/stanford_basic.theme
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@ function stanford_basic_preprocess_menu(&$variables, $hook) {
// If path is current_path, add aria-current to the link.
if (parse_url($item['url']->toString(), PHP_URL_PATH) == $current_path) {
$link_options = $variables['items'][$key]['url']->getOptions();
$link_options['attributes']= [
'aria-current' => 'true',
];
$link_options['attributes']['aria-current'] = 'true';
$variables['items'][$key]['url']->setOptions($link_options);
$variables['items'][$key]['attributes']['aria-current'] = 'true';
}
Expand Down

0 comments on commit b8f02db

Please sign in to comment.