Skip to content

Commit cfd311b

Browse files
committed
style: 不要な role 属性を削除してアクセシビリティを改善
1 parent f7509d1 commit cfd311b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/components/Header/HambergerMenu.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const { pages } = Astro.props;
3232
</ul>
3333
</div>
3434

35-
<label class="menu-bg" for="hamburger" role="menu"></label>
35+
<label class="menu-bg" for="hamburger"></label>
3636
</div>
3737

3838
<style lang="scss">

Diff for: src/components/PostCard/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
const { post, min } = Astro.props;
1010
---
1111

12-
<a href={`/post/${post.data.number}`} class="article" data-min={min} role="article">
12+
<a href={`/post/${post.data.number}`} class="article" data-min={min}>
1313
<div class="thumbnail">
1414
<img src={pickPostThumbnail(post.body)} alt="post thumbnail" class="img" />
1515
</div>

Diff for: src/components/ProductCard/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const product = pipe(productCollection, (p) => {
4747
});
4848
---
4949

50-
<a href={product.link} target="_blank" class="article" role="article" data-haslink={product.link !== undefined}>
50+
<a href={product.link} target="_blank" class="article" data-haslink={product.link !== undefined}>
5151
<div class="thumbnail">
5252
<img src={product.thumbnail ?? DEFAULT_PRODUCT_THUMBNAIL.src} alt="post thumbnail" class="img" />
5353
</div>

0 commit comments

Comments
 (0)