autocomplete dark / light

This commit is contained in:
Felix Roos 2023-02-11 13:02:04 +01:00
parent fe80478b8a
commit 9694ecf55b

View File

@ -8,9 +8,11 @@ const getInnerText = (html) => {
return div.textContent || div.innerText || ''; return div.textContent || div.innerText || '';
}; };
// atomone, darcula, dracula, duotoneDark, eclipse, gruvboxLight autocompletes are flipped in darkness / lightness
export function Autocomplete({ doc }) { export function Autocomplete({ doc }) {
return ( return (
<div className="prose prose-invert max-h-[400px] overflow-auto"> <div className="prose dark:prose-invert max-h-[400px] overflow-auto">
<h3 className="pt-0 mt-0">{getDocLabel(doc)}</h3> <h3 className="pt-0 mt-0">{getDocLabel(doc)}</h3>
<div dangerouslySetInnerHTML={{ __html: doc.description }} /> <div dangerouslySetInnerHTML={{ __html: doc.description }} />
<ul> <ul>