style: Adjust button styles for better accessibility

This commit is contained in:
Liuweiqing 2024-01-22 09:27:09 +08:00
parent 22588b48ba
commit a1eef4daa6
2 changed files with 59 additions and 59 deletions

View File

@ -242,7 +242,7 @@ const QEditor = () => {
/> />
<button <button
onClick={handleAIWrite} onClick={handleAIWrite}
className="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 mr-2 rounded" className="bg-gray-300 hover:bg-gray-400 text-black font-bold py-2 px-4 mr-2 rounded"
> >
AI Write AI Write
</button> </button>
@ -254,7 +254,7 @@ const QEditor = () => {
</button> */} </button> */}
<button <button
onClick={() => paper2AI(userInput)} onClick={() => paper2AI(userInput)}
className="bg-red-500 hover:bg-red-700 text-black font-bold py-2 px-4 mr-2 rounded" className="bg-yellow-500 hover:bg-yellow-600 text-white font-bold py-2 px-4 mr-2 rounded"
> >
Paper2AI Paper2AI
</button> </button>
@ -280,7 +280,7 @@ const QEditor = () => {
<button <button
onClick={() => formatTextInEditor(quill)} // 假设 updateIndex 是处理更新操作的函数 onClick={() => formatTextInEditor(quill)} // 假设 updateIndex 是处理更新操作的函数
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" className="bg-gray-300 hover:bg-gray-400 text-black font-bold py-2 px-4 rounded"
> >
</button> </button>

View File

@ -122,14 +122,14 @@ function ReferenceList({
<div className="container mx-auto p-4"> <div className="container mx-auto p-4">
<div className="flex justify-between items-center mb-4"> <div className="flex justify-between items-center mb-4">
<button <button
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded " className="bg-gray-300 hover:bg-gray-400 text-black font-bold py-2 px-4 rounded "
type="submit" type="submit"
> >
</button> </button>
<button <button
className="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded " className="bg-gray-300 hover:bg-gray-400 text-black font-bold py-2 px-4 rounded "
type="button" type="button"
onClick={() => onClick={() =>
copyToClipboard(formatAllReferencesForCopy(references)) copyToClipboard(formatAllReferencesForCopy(references))