Skip to content

Commit 753bbe6

Browse files
committed
copilot fixes
1 parent 7a1515a commit 753bbe6

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

themes/arm-design-system-hugo-theme/layouts/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ <h1 id="homepage-header" class="orchard-breeze-text">Arm Learning Paths</h1>
6666
{{ if eq .Title "Servers and Cloud Computing" }}
6767
{{ $iconFilename = "Cloud.svg" }}
6868
{{ else if eq .Title "Mobile, Graphics, and Gaming" }}
69-
{{ $iconFilename = "Premium%20Phone.svg" }}
69+
{{ $iconFilename = "premium-phone.svg" }}
7070
{{ else if eq .Title "Embedded and Microcontrollers" }}
7171
{{ $iconFilename = "Microcontroller.svg" }}
7272
{{ end }}
7373
<a href="{{.Permalink}}">
7474
<div class="main-topic-card c-row" style="flex-wrap: nowrap !important;">
7575
<div class="c-col-3">
76-
<img alt="Icon for {{.Title}}" aria-hidden="true" src="img/main-topic-icons/{{ $iconFilename }}" width="60" height="45" />
76+
<img alt="" aria-hidden="true" src="img/main-topic-icons/{{ $iconFilename }}" width="60" height="45" />
7777
</div>
7878
<div class="maintopic-content c-col-9 u-margin-left-1">
7979
<h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">{{ replace .Title "and" "&" }}</h3>
@@ -87,7 +87,7 @@ <h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">{{ replace .Ti
8787
<a href="/tag/ml/">
8888
<div class="main-topic-card c-row" style="flex-wrap: nowrap !important;">
8989
<div class="c-col-3">
90-
<img alt="Icon for AI" aria-hidden="true" src="img/main-topic-icons/AI_2.svg" width="60" height="45" style="width: 100%;" />
90+
<img alt="" aria-hidden="true" src="img/main-topic-icons/AI_2.svg" width="60" height="45" style="width: 100%;" />
9191
</div>
9292
<div class="maintopic-content c-col-9 u-margin-left-1">
9393
<h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">AI</h3>

themes/arm-design-system-hugo-theme/layouts/partials/header/color-refresh-alert.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
(function () {
1616
var dismissalKey = 'arm-learning-paths-color-refresh-alert-dismissed-v1';
1717
var container = document.getElementById('color-refresh-alert-container');
18-
var alert = document.getElementById('color-refresh-alert');
18+
var alertElement = document.getElementById('color-refresh-alert');
1919
var dismissed = false;
2020

21+
if (!container || !alertElement) {
22+
return;
23+
}
24+
2125
try {
2226
dismissed = window.localStorage.getItem(dismissalKey) === 'true';
2327
} catch (error) {
@@ -28,7 +32,7 @@
2832
container.hidden = false;
2933
}
3034

31-
alert.addEventListener('visibleChange', function (event) {
35+
alertElement.addEventListener('visibleChange', function (event) {
3236
if (event.detail && event.detail.visible === false) {
3337
try {
3438
window.localStorage.setItem(dismissalKey, 'true');

themes/arm-design-system-hugo-theme/static/img/main-topic-icons/Premium Phone.svg renamed to themes/arm-design-system-hugo-theme/static/img/main-topic-icons/premium-phone.svg

File renamed without changes.

0 commit comments

Comments
 (0)