mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Fixed issues with wrong button color in dark mode
refs https://github.com/TryGhost/Product/issues/4166
This commit is contained in:
parent
e51f39e2c9
commit
72f273ae47
1 changed files with 3 additions and 3 deletions
|
@ -27,9 +27,9 @@ const APIKeyField: React.FC<APIKeyFieldProps> = ({label, text = '', hint, onRege
|
|||
<div className={containerClasses}>
|
||||
<span>{text}</span>
|
||||
{hint}
|
||||
<div className='visible absolute right-0 top-1/2 flex translate-y-[-50%] gap-1 pl-1 text-sm group-hover/api-keys:visible dark:bg-black md:invisible'>
|
||||
{onRegenerate && <Button className='!bg-white' color='outline' label='Regenerate' size='sm' onClick={onRegenerate} />}
|
||||
<Button className='!bg-white' color='outline' label={copied ? 'Copied' : 'Copy'} size='sm' onClick={copyText} />
|
||||
<div className='visible absolute right-0 top-1/2 flex translate-y-[-50%] gap-1 bg-white pl-1 text-sm group-hover/api-keys:visible dark:bg-black md:invisible'>
|
||||
{onRegenerate && <Button color='outline' label='Regenerate' size='sm' onClick={onRegenerate} />}
|
||||
<Button color='outline' label={copied ? 'Copied' : 'Copy'} size='sm' onClick={copyText} />
|
||||
</div>
|
||||
</div>
|
||||
</div>;
|
||||
|
|
Loading…
Add table
Reference in a new issue