Skip to content

Commit

Permalink
chore: change a tag to button
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekaplan123 committed Jan 14, 2025
1 parent 1fe0859 commit c2f8baa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -4987,6 +4987,8 @@ body .ui-autocomplete.dictionary-toc-autocomplete .ui-menu-item a.ui-state-focus
display: flex;
}
.readerControls .readerControlsInner.transLangPrefSuggBannInner .yesNoButton {
border: none;
font-size: 16px;
border-radius: 6px;
background-color: white;
padding: 5px 11px;
Expand Down
4 changes: 2 additions & 2 deletions static/js/TextColumnBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ const TextColumnBannerButton = ({ button, closeBanner }) => {
if (button.sideEffect === "close") { closeBanner(true); }
}
return (
<a href="#" role="button" tabIndex="0" className="yesNoButton" aria-label={button.text} onClick={onClick}>
<button tabIndex="0" className="yesNoButton" aria-label={button.text} onClick={onClick}>
<InterfaceText>{button.text}</InterfaceText>
</a>
</button>
);
}

0 comments on commit c2f8baa

Please sign in to comment.