Skip to content

Commit

Permalink
fix: basic a11y issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Nov 10, 2024
1 parent c63344c commit c6c9318
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bsky-widget",
"version": "0.0.15",
"version": "0.0.16",
"description": "Profile Card / Widget for Bluesky",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion web-component/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
box-sizing: border-box;
}

h3 {
h2 {
margin: 0px;
font-size: var(--bsky-text-title);
}
Expand Down
8 changes: 6 additions & 2 deletions web-component/template.abell
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</a>
</div>
<div class="name-handle-container padded">
<h3>{{ props.displayName }}</h3>
<h2>{{ props.displayName }}</h2>
<p class="handle">@{{ props.handle }}</p>
<div class="followers">
<p><span class="count">{{ props.followersCount }}</span> Followers</p>
Expand All @@ -31,7 +31,11 @@
` : null
}}

<a class="logo-anchor bluesky-flutter" href="https://bsky.app/profile/{{props.handle}}" target="_blank" rel="noreferrer noopener">
<a
class="logo-anchor bluesky-flutter"
href="https://bsky.app/profile/{{props.handle}}"
target="_blank" rel="noreferrer noopener"
aria-label="View {{props.handle}}'s bluesky profile">
<svg id="flutterby" class="bluesky-flutter" viewBox="0 0 566 500" xmlns="http://www.w3.org/2000/svg">
<defs>
<path id="wing" fill="currentColor" d="M 123.244 35.008 C 188.248 83.809 283.836 176.879 283.836 235.857 C 283.836 316.899 283.879 235.845 283.836 376.038 C 283.889 375.995 282.67 376.544 280.212 383.758 C 266.806 423.111 214.487 576.685 94.841 453.913 C 31.843 389.269 61.013 324.625 175.682 305.108 C 110.08 316.274 36.332 297.827 16.093 225.504 C 10.271 204.699 0.343 76.56 0.343 59.246 C 0.343 -27.451 76.342 -0.206 123.244 35.008 Z" />
Expand Down

0 comments on commit c6c9318

Please sign in to comment.