Skip to content

Commit

Permalink
feat: Accessible clap button and other improvements (#106)
Browse files Browse the repository at this point in the history
- use html button for instant a11y improvements and cleaner code!
- clap count no longer positioned outside component bounds
- only need to set width on applause-button element, not height


---------

Co-authored-by: DAVE OGLE <dogle@scottlogic.co.uk>
  • Loading branch information
chriswilty and dogle-scottlogic authored Sep 23, 2024
1 parent 590858a commit e9db16b
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 257 deletions.
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<script src="dist/applause-button.js"></script>
<style>
applause-button {
width: 58px;
height: 58px;
margin-top: 40px;
margin-left: 40px;
width: 8rem;
margin-inline: auto;
font-family: sans-serif;
}
</style>
</head>
Expand Down
Loading

0 comments on commit e9db16b

Please sign in to comment.