From e001881504e62067fe0c96cb6b0f6783f099d265 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Fri, 23 Jun 2023 10:47:38 -0700 Subject: [PATCH 1/2] Dont override existing attributes on link items --- themes/stanford_basic/stanford_basic.theme | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/themes/stanford_basic/stanford_basic.theme b/themes/stanford_basic/stanford_basic.theme index d3044749..5561f799 100755 --- a/themes/stanford_basic/stanford_basic.theme +++ b/themes/stanford_basic/stanford_basic.theme @@ -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'; } From 226cecf58022d6b5ceb5955ed2476f2cc7db0b37 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Fri, 23 Jun 2023 11:20:41 -0700 Subject: [PATCH 2/2] 9.2.8 --- CHANGELOG.md | 4 ++++ stanford_profile.info.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e86beaf..70eb2893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/stanford_profile.info.yml b/stanford_profile.info.yml index 54582039..3fd2d92f 100644 --- a/stanford_profile.info.yml +++ b/stanford_profile.info.yml @@ -1,6 +1,6 @@ name: 'Stanford Profile' description: 'Jumpstart Website Profile' -version: 9.2.7 +version: 9.2.8 type: profile project: Jumpstart core_version_requirement: ^9 || ^10