Skip to content

Commit 931abc7

Browse files
inoovadorclaude
andcommitted
fix: remove invalid alt attribute from button elements
The alt attribute is only valid on <img>, <area>, and <input type="image"> elements. Several Button components had alt attributes which are invalid on <button> elements. The buttons already use aria-label and title for accessibility, so the alt attributes are unnecessary. Closes #7485 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e86aec3 commit 931abc7

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/sections/General/Navigation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ const Navigation = () => {
537537
$url="https://cloud.layer5.io/registration"
538538
/>
539539
)}
540-
{/* <Button id="book-a-demo" aria-label="Book a demo" secondary className="banner-btn book-a-demo" external={true} title="Book a demo" alt="Book a demo" url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" /> */}
540+
{/* <Button id="book-a-demo" aria-label="Book a demo" secondary className="banner-btn book-a-demo" external={true} title="Book a demo" url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" /> */}
541541
{!userData && (
542542
<Button
543543
id="book-a-demo"

src/sections/Kanvas/kanvas-buttons.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ const KanvasBtn = ({ title, style }) => {
2626
$primary
2727
$external={true}
2828
title={title ? title : "Explore Kanvas"}
29-
alt="Explore Kanvas"
3029
$url="https://kanvas.new/"
3130
/>
3231
<Button
3332
aria-label="Book a demo"
3433
$secondary
3534
$external={true}
3635
title="Book a demo"
37-
alt="Book a demo"
3836
$url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true"
3937
/>
4038
</BtnContainer>

src/sections/Products/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ const index = () => {
7373
flexibility, elevating operations to new efficiencies.{" "}
7474
</p>
7575
<div className="btn">
76-
<Button secondary className="banner-btn two" $external={true} title="Explore Now" alt="" $url="https://cloud.layer5.io/"/>
77-
<Button id="book-a-demo" aria-label="Book a demo" primary className="banner-btn book-a-demo" $external={true} title="Book a demo" alt="Book a demo" $url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" />
76+
<Button secondary className="banner-btn two" $external={true} title="Explore Now" $url="https://cloud.layer5.io/"/>
77+
<Button id="book-a-demo" aria-label="Book a demo" primary className="banner-btn book-a-demo" $external={true} title="Book a demo" $url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" />
7878
</div>
7979
</div>
8080
<div className="product_hero_img">
@@ -109,7 +109,7 @@ const index = () => {
109109
{/* </Link> */}
110110
{/* TEMPORARY COMMENTED BUTTON */}
111111
{/* <div className="btns">
112-
<Button button secondary className="banner-btn two" title="Subscribe" alt=""/>
112+
<Button button secondary className="banner-btn two" title="Subscribe"/>
113113
</div> */}
114114
</div>
115115
</div>
@@ -127,7 +127,7 @@ const index = () => {
127127
<p className="paraInfo">
128128
Embrace the future of technology and embark on a transformative journey with our comprehensive range of products prepared to meet your needs. Elevate, Innovate, and conquer the cloud with us today!
129129
</p>
130-
<Button button secondary className="banner-btn two" title="Open Playground" alt="Cloud Native Playground" $url="https://play.meshery.io" />
130+
<Button button secondary className="banner-btn two" title="Open Playground" $url="https://play.meshery.io" />
131131
</div>
132132
</div>
133133
<div className="headers bot_gap">
@@ -142,7 +142,7 @@ const index = () => {
142142
<PlanCard planData={options}/>
143143

144144
<Row $Vcenter $Hcenter className={"comparison-button"}>
145-
<Button $primary title="Feature Comparison" alt="Feature Comparison" $url={"/pricing/#feature-comparison"}/>
145+
<Button $primary title="Feature Comparison" $url={"/pricing/#feature-comparison"}/>
146146
</Row>
147147

148148
<div className="headers gap">
@@ -159,7 +159,7 @@ const index = () => {
159159
Book to see it in action! Our experts are eager to guide you through the incredible possibilities that Layer5 offers. Take this opportunity to discover what more your infrastructure can do for you!
160160
</p>
161161
</div>
162-
<Button $external={true} $primary title="Book a Demo" alt="Book a demo" $url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" />
162+
<Button $external={true} $primary title="Book a Demo" $url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" />
163163
</div>
164164
</div>
165165
</ProductsWrapper>

src/sections/Solutions/solutions-buttons.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const DemoBtn = ({ style }) => {
3030
$secondary
3131
$external={true}
3232
title="Book a demo"
33-
alt="Book a demo"
3433
$url="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true"
3534
/>
3635
</BtnContainer>

0 commit comments

Comments
 (0)