Skip to content

Commit

Permalink
fix(masthead): change logo protocol to https
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylam committed Jan 17, 2023
1 parent 84a5c21 commit b150972
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
30 changes: 15 additions & 15 deletions packages/react/src/__tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36306,7 +36306,7 @@ exports[`Storyshots Components/Dotcom shell Default (footer language only) 1`] =
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -43341,7 +43341,7 @@ exports[`Storyshots Components/Dotcom shell Default 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -49402,7 +49402,7 @@ exports[`Storyshots Components/Dotcom shell Search open 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -59657,7 +59657,7 @@ exports[`Storyshots Components/Dotcom shell With L1 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-eco__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -66747,7 +66747,7 @@ exports[`Storyshots Components/Dotcom shell With micro footer (language only) 1`
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -72709,7 +72709,7 @@ exports[`Storyshots Components/Dotcom shell With micro footer 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -78379,7 +78379,7 @@ exports[`Storyshots Components/Dotcom shell With platform 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-eco__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -84617,7 +84617,7 @@ exports[`Storyshots Components/Dotcom shell With short footer (language only) 1`
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -91651,7 +91651,7 @@ exports[`Storyshots Components/Dotcom shell With short footer 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -115298,7 +115298,7 @@ exports[`Storyshots Components/Masthead Default 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -115976,7 +115976,7 @@ exports[`Storyshots Components/Masthead Search open onload 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -120865,7 +120865,7 @@ exports[`Storyshots Components/Masthead With L1 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-eco__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -122522,7 +122522,7 @@ exports[`Storyshots Components/Masthead With alternate logo and tooltip 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -127245,7 +127245,7 @@ exports[`Storyshots Components/Masthead With custom navigation 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-default__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down Expand Up @@ -128822,7 +128822,7 @@ exports[`Storyshots Components/Masthead With platform 1`] = `
<a
aria-label="IBM®"
data-autoid="dds--masthead-eco__l0-logo"
href="http://www.ibm.com"
href="https://www.ibm.com"
>
<MastheadLogo
height="23"
Expand Down
7 changes: 5 additions & 2 deletions packages/react/src/components/Icon/IbmLogo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2016, 2022
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -43,7 +43,10 @@ const IbmLogo = ({ autoid, logoData, isSearchActive }) => {
dangerouslySetInnerHTML={{ __html: logoData.svg }}
/>
) : (
<a aria-label="IBM®" data-autoid={autoid} href={`http://www.ibm.com`}>
<a
aria-label="IBM®"
data-autoid={autoid}
href={`https://www.ibm.com`}>
{!useAlternateLogo && <MastheadLogo />}
</a>
)}
Expand Down

0 comments on commit b150972

Please sign in to comment.