Skip to content

Commit cb64487

Browse files
committed
aria label update
1 parent ac6596a commit cb64487

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pcweb/pages/landing/views/social_marquee.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ class Social:
9090

9191

9292
def social_card(social: Social) -> rx.Component:
93-
aria_label = f"Read {social.name}'s testimonial"
94-
if social.url and "ycombinator.com" in social.url:
95-
aria_label = f"Read {social.name}'s full post on Hacker News"
96-
9793
return rx.el.div(
9894
social.text,
9995
rx.el.div(
@@ -124,7 +120,7 @@ def social_card(social: Social) -> rx.Component:
124120
to=social.url,
125121
target="_blank",
126122
class_name="absolute inset-0",
127-
custom_attrs={"aria-label": aria_label},
123+
custom_attrs={"aria-label": f"Read {social.name}'s testimonial"},
128124
),
129125
ui.icon(
130126
"ArrowUpRight01Icon",

0 commit comments

Comments
 (0)