Skip to content

Commit cdf4dfb

Browse files
authored
Merge pull request #2971 from r0hit-gupta/msft78
MSFT-78
2 parents 268d8c8 + ed71bda commit cdf4dfb

File tree

2 files changed

+3
-2
lines changed
  • __tests__/shared/components/ProfilePage/Skill/__snapshots__
  • src/shared/components/ProfilePage/Skill

2 files changed

+3
-2
lines changed

__tests__/shared/components/ProfilePage/Skill/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exports[`renders a skill correctly 1`] = `
55
className="src-shared-components-ProfilePage-Skill-___styles__container___bW089"
66
>
77
<div
8+
aria-label="Test Skill Icon"
89
className="src-shared-components-ProfilePage-Skill-___styles__skill-icon___1-d49"
910
>
1011
<FallbackIcon

src/shared/components/ProfilePage/Skill/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const Skill = ({
2222
isVerified,
2323
}) => (
2424
<div styleName="container">
25-
<div styleName="skill-icon">
26-
{ assets && assets.keys().includes(`./id-${tagId}.svg`) ? <img src={assets(`./id-${tagId}.svg`)} alt="Skill Icon" /> : <FallbackIcon /> }
25+
<div styleName="skill-icon" aria-label={`${tagName} Icon`}>
26+
{ assets && assets.keys().includes(`./id-${tagId}.svg`) ? <img src={assets(`./id-${tagId}.svg`)} alt={`${tagName} Icon`} /> : <FallbackIcon /> }
2727
</div>
2828
<div styleName="name-wrapper">
2929
<div styleName="name">

0 commit comments

Comments
 (0)